[ace-users] Need help to resolve the hang with ACE Reactor usage
Sukumar.Gudugunta at philips.com
Tue Jul 14 06:32:46 CDT 2015
We are using ACE_Reactor pattern to register and take the reaction on certain handles.
We are using remove handler with NULL_MASK to remove the handle forcefully from ace internal handler as follows
int HttpCommand::handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
The call back handle_close() should be invoked when we remove handler with NULL_MASK. In one of the use case this doesn't happen and our application is hanging as in attached call stack
and we don't see that call back gets invoked at these times(When app hangs)
Changing the reactor mask type to DONT_CALL has fixed this issue. I don't see hanging any more . Can you please let me know what happens in background when the reactor type is NULL_MASK and the reason for app hang?
Does this wait for any process mutex to invoke handle_close callback.?
When we use DON'T_CALL instead NULL_MASK it solved the issue but we need to know what's the issue in depth. Please let us know if you have any information on same
Thanks in advance
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ace-users