-
Notifications
You must be signed in to change notification settings - Fork 848
The mutex of NetAccept::action_->continuation is optional when the EVENT_ERROR event is called back. #4755
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
Conversation
…ENT_ERROR event is called back. In general, `NetAccept::action_->continuation` is a type of `ProtocolProbeSessionAccept` object. The mutex of `ProtocolProbeSessionAccept` is NULL to allow parallel accepts. Resolve issue apache#4726.
|
How to process EVENT_ERROR in It still crash . |
|
If errno returns from In the situation, we must abort the ATS process, and output the |
|
I guess the value of errno might be:
|
scw00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
Thanks for your explain. |
|
So, do we think this still fixes the crashes in #4726 ? |
|
Yep, we need to catch the errno to figure out what happen during crashing. Some code can not be recover like ENFILE 、 EMFILE and ENOMEM because it is memory leaking. |
|
@zwoop With this PR, ATS still crash ( We will get errno from the abort message and find out the cause of the problem. |
|
Cherry picked to 8.1.0 |
In general,
NetAccept::action_->continuationis a type ofProtocolProbeSessionAcceptobject.The mutex of
ProtocolProbeSessionAcceptis NULL to allow parallel accepts.Resolve issue #4726.