-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socketTimeout trigger on empty lines #269
Comments
So the response from the server looks something like this: HTTP/1.1 200 OK\r\n
Transfer-Encoding: chunked\r\n
Server: CouchDB/1.6.1 (Erlang OTP/17)\r\n
Date: Wed, 29 Jul 2020 10:06:14 GMT\r\n
Content-Type: text/plain; charset=utf-8\r\n
Cache-Control: must-revalidate\r\n
\r\n
1\r\n
\n\r\n
1\r\n
\n\r\n
1\r\n
\n\r\n
1\r\n
\n\r\n Basically it's long polling chunked response which sends Maybe related https://github.com/nodejs/node/blob/master/src/node_http_parser.cc#L665? Might also explain #268 @indutny @addaleax Do you have any ideas? I don't think we currently encounter this in node core since the node http client doesn't use the |
Added a workaround. Would be interesting to fix "properly". |
Node bug nodejs/node#34578 |
Also logging inside
kOnBody
andkOnExecute
inParser
will give the following output:Notice how
kOnExecute
does not seem to be invoked on empty lines?The text was updated successfully, but these errors were encountered: