-
Notifications
You must be signed in to change notification settings - Fork 600
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
Timeout breaking change #4055
Comments
@mcollina since undici is aiming to replace the nodejs http lib, basically an infrastructure for http calls, its odd to fix very specific usecase reported here and ignore all the needs of undici users, more than that, doing it as minor affect the trust users put in undici There is a variable that contolls the resolution, in fast timers.. The question how will it affect perfromance if it will be decreased |
Sorry the linked pr is incorrect. The actual PR is #3495. As you can see for the linked issues, it fixes many critical issues developers were having with fetch and undici in general in high pressure scenarios.
Apart from the unexpected breaking change, what problems is this causing? |
Isnt it strange to assume no one needs lower timeout value ? |
No one said it's not a problem and people should not have a timeout < 1s for their HTTP requests. I'm saying that:
Now, that change was unfortunately breaking, as no one spotted it earlier on, and it's poorly documented. I'll add some docs about it. Having said all of that, I won't have issues with a PR that fixes this regression, but given the nature of the breaking change, and the feature in question, I'm not going to spend time on it. (It's also super easy to work around the problem in userland with a setTimeout.. and incur in the problems mentioned above in busy scenarios). |
As I said before, there is also it was spotted before, #3798
Not sure about the workaround, as I want to know when my service handled the request, but didn't write the response to socket yet, because im not interested in response body, and I do not want to wait for it to be written to the socket |
Interesting. I will have a look at it. |
The bug was introduced in v6.20, the timeout that is set less than a second is ignored, Its a breaking change in minor version
server
client
The text was updated successfully, but these errors were encountered: