[issue32763] write() method in Transport should not buffer data

2018-02-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Transport buffers writes if kernel buffer is full, the behavior is intentional and present starting from very beginning of asyncio development. Moreover, two plain socket.send() calls can be joined into single TCP packet, TCP

[issue32763] write() method in Transport should not buffer data

2018-02-04 Thread Boss Kwei
New submission from Boss Kwei : write() method implemented in https://github.com/python/cpython/blob/master/Lib/asyncio/selector_events.py#L830 is not stable in somecases. If this method was called too quickly, separate data will be packed and sent in same tcp package,