We are using http-parser library in composition of aiohttp. In particular: to communicate with etcd daemon in event-based way - our client application opens a connection and waits for a chunks of data.
So, we noticed that sometimes we have a full chunk of data in the buffer (checked with tcpdump), but a boolean variable says that a chunk is not full (readchunk function). It causes to event delays and complicated json parsing.
I didn't found a reason yet, but I guess that sometimes on_chunk_complete not called by the http_parser_execute function
Hi folks!
We are using
http-parser
library in composition ofaiohttp
. In particular: to communicate with etcd daemon in event-based way - our client application opens a connection and waits for a chunks of data.So, we noticed that sometimes we have a full chunk of data in the buffer (checked with tcpdump), but a boolean variable says that a chunk is not full (readchunk function). It causes to event delays and complicated json parsing.
I didn't found a reason yet, but I guess that sometimes
on_chunk_complete
not called by thehttp_parser_execute
function