[ace-users] Need help to resolve the hang with ACE Reactor usage
shuston at riverace.com
Tue Jul 14 11:13:54 CDT 2015
As Doug indicated, you should use the PROBLEM-REPORT-FORM to be sure all the information needed to help is given.
For your issue, think about what you're asking the reactor to do - remove the handling for nothing. Even if you do get a callback, the reactor still thinks the handler is registered for the same events you previously specified in register_handler().
From: ace-users [mailto:ace-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Gudugunta, Sukumar
Sent: Tuesday, July 14, 2015 7:33 AM
To: ace-users at list.isis.vanderbilt.edu
Subject: [ace-users] Need help to resolve the hang with ACE Reactor usage
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