nodejs / http-parser

http request/response parser for c
MIT License
6.35k stars 1.54k forks source link

on_chunk_complete not called sometimes #446

Closed mnacharov closed 6 years ago

mnacharov commented 6 years ago

Hi folks!

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

mnacharov commented 6 years ago

bug in aiohttp