xpra icon
Bug tracker and wiki

Changeset 156 in xpra


Ignore:
Timestamp:
09/07/11 09:53:17 (21 months ago)
Author:
antoine
Message:

_handle_read is called from the main thread and _read_thread_loop can potentially schedule it to run a large number of times when a large amount of data is received in 8KB chunks (ie: large screen updates) - this needs fixing too - by the time it runs, the connection may be closed and we end up with assertion failures.. so don't bother trying to process packets in _handle_read() once the connection is closed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xpra/protocol.py

    r52 r156  
    165165    def _handle_read(self): 
    166166        log("main thread: woken to handle read data") 
    167         while True: 
     167        while not self._closed: 
    168168            try: 
    169169                buf = self._read_queue.get(block=False) 
Note: See TracChangeset for help on using the changeset viewer.