Commit fedc80c9 authored by Yann Leboulanger's avatar Yann Leboulanger

make BOSH work when more than 16384 bytes need to be sent

parent 40520af1
Pipeline #4238 passed with stages
in 14 seconds
......@@ -571,7 +571,7 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
if send_count:
sent_data = self.sendbuff[:send_count]
self.sendbuff = self.sendbuff[send_count:]
self._plug_idle(writable=(self.sendqueue != []), readable=True)
self._plug_idle(writable=((self.sendqueue != []) or (len(self.sendbuff) != 0)), readable=True)
if self.sent_bytes_buff:
sent_data = self.sent_bytes_buff + sent_data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment