sseclient icon indicating copy to clipboard operation
sseclient copied to clipboard

When using urllib3 no data received.

Open CutePotatoDev opened this issue 4 years ago • 3 comments

Python 3.6.7 urllib3 1.25.7 sseclient-py 1.7

When using with urllib3 not get my messages. looks like issue is: https://github.com/mpetazzoni/sseclient/blob/16a29bb43de7ab98e3516a64e2ab421dece8d78d/sseclient/init.py#L48 It's never get chunks of data. I track down problem to this place: https://github.com/urllib3/urllib3/blob/93e5c6a5bb12a67a89bd8b24584d64a3102b2096/src/urllib3/response.py#L543 urllib3 waiting 65536 bytes of data and only then dispatch chunk. After overriding: https://github.com/urllib3/urllib3/blob/93e5c6a5bb12a67a89bd8b24584d64a3102b2096/src/urllib3/response.py#L794 and decreasing amt size, messages start arriving as expected.

CutePotatoDev avatar Jan 02 '20 10:01 CutePotatoDev