-
Notifications
You must be signed in to change notification settings - Fork 96
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 not working #155
Comments
as per doc using beforeShutdown hook i can wait but i don't understand the timeout option at this point
|
I forked the repo to do a little experimentation with the timeout handling. afaik timeout does work, I don't think your test is exercising the feature correctly b/c you aren't creating any connections before stopping the server. It might be helpful if there was a test case to verify timeout is respected. You can see my findings here: |
thank you @MichaelSitter I confirm that with requests flowing the following snippet works:
|
the timeout option of the library seem not working, here is a simple example code:
From my understanding of the documentation the timeout option should delay the shutdown, but if i ran:
node app.js
and then
kill -TERM <PID>
the logs shows:
and there is not "sleep" of 30s.
Can someone please advise?
The text was updated successfully, but these errors were encountered: