Skip to content
Snippets Groups Projects
Commit 8c5b3f3a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

process all incoming and outgoing queues even if we receive big things (a file). Fixes #3380

parent 1e75af9e
No related branches found
No related tags found
No related merge requests found
......@@ -204,15 +204,15 @@ class SelectIdleQueue(IdleQueue):
except select.error, e:
waiting_descriptors = ((),(),())
if e[0] != 4: # interrupt
raise
for fd in waiting_descriptors[0]:
self.queue.get(fd).pollin()
self.check_time_events()
return True
raise
for fd in waiting_descriptors[0]:
q = self.queue.get(fd)
if q:
q.pollin()
for fd in waiting_descriptors[1]:
self.queue.get(fd).pollout()
self.check_time_events()
return True
q = self.queue.get(fd)
if q:
q.pollout()
for fd in waiting_descriptors[2]:
self.queue.get(fd).pollend()
self.check_time_events()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment