-
Notifications
You must be signed in to change notification settings - Fork 513
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
test/client-request.js, 'request dump' test case always takes ~ 5 seconds #3120
Comments
The same with 'request DELETE, content-length=0, with body' in test/content-length.js |
I investigated it further. The tests will run faster if I manually set I guess this is also related to issue-803, as it never sending the whole payload to the client. Also i have the fealing that contentLenght is not stored properly as an attribute . It is set as empty string. The numbers are added. |
Dunno if relevant, but if you call |
If you set the dump limit to 4, then it will result in an error, which gets passed to noop. Thats why it is finishing early. |
Seems working as expected then if I am understanding everything correctly. If dump is able to consume the entire response, then the socket is clear for another request, and the client's disconnect event won't fire until the keep alive timeout. For 'request dump', would it be preferable to replace
with
? |
Is there a reason, that 'request dump' takes 5 seconds but 'request dump big' just 30ms. Also I doubt that 'request dump big' is correctlly written, as it just sends data till reaching the highwatermark.
So the 5 seconds are kind of fishy. Maybe it keeps the connection open for some reason open? Maybe Maybe an indicator for a bug?
The text was updated successfully, but these errors were encountered: