Changes between and of Version 4Version 5Ticket #5562, comment 45


Ignore:
Timestamp:
06/15/2017 09:10:09 PM (2 years ago)
Author:
Bear
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5562, comment 45

    v4 v5  
    11Thanks BMtthws. It is really a bug. Only adding the write_pending can solve the problem very safely. The second send command will then be sent until our program gets the callback of the first send command from the iocp.
    22
    3 So the self.offset in 17.5 still destroys the order of sending. In fact, the IOCP can ensure the enqueue order. So we don't even need both the write_pending and self.offset.[I listed the explanation below]
     3So the self.offset in 17.5 still destroys the order of sending. In fact, the IOCP can ensure the enqueue order. We don't even need write_pending, self.offset, _cbWrite. It is nealy 100 percent that all the bytes will be sent[I listed the explanation below]
    44
    55I use the IOCP reactor to avoid the limited file descriptor so the patch is very good.