[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] remoting

From: strk
Subject: [Gnash-dev] remoting
Date: Tue, 12 Aug 2008 15:10:42 +0200


So, Jason drafted AMF-based remoting and I'm helping cleaning it up. is currently the only user for the new non-blocking
read interface of IOChannel.
This was done to avoid threading there.


- Jason used an interval of 500ms (1/2 second) between non-blocking
  reads. No wonder it takes almost an hour to fetch streets from 
  openstreetmap (potlatch). Making quicker ticks should improve things
  a lot. Ideally, the 'ticker' should be waken up from an FD checker
  which would select with a timeout.

- We need to distinguish between 404 (not found) and empty responses
  from HTTP. IOChannel still has a get_error() method which may be
  used, or we may use the exception interface. If we opt for the latter
  we should catch on every read. What do other devels think about it ?

- A different approach might be using a thread (a single thread for
  each NetConnection used for remoting). In this case we'd have the thread
  using blocking reads (which would select() internally).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]