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
Signal handling for sleep #44
Comments
Thank you for opening the issue.
I think this is the right thing to do. |
Thanks. |
See it in 0.33. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kazuho
We observed that
KILL_OLD_DELAY
may be interrupted by signal while waiting for new workers, using Perl 5.16, Linux.As far as I know,
sleep
can be interrupted and Perl will not call the system call (in our environment, implemented bynanosleep
) again for rest of seconds.As a result, in some use cases, old workers are unexpectedly killed before new workers become capable to accept requests.
For example,
Is it by design?
Or is it okay to fix it by sleeping again for rest of seconds when it was interrupted?
The text was updated successfully, but these errors were encountered: