<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>ACE VERSION: 5.3.0.0<o:p></o:p></b></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>HOST MACHINE and OPERATING SYSTEM:<o:p></o:p></b></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">        Windows server 2008 r2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>TARGET MACHINE and OPERATING SYSTEM, if different from HOST:</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>COMPILER NAME AND VERSION (AND PATCHLEVEL):<o:p></o:p></b></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">        VS 2008 compiler<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>AREA/CLASS/EXAMPLE AFFECTED:<o:p></o:p></b></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Courier New";color:black">    [What example failed?  What module failed to compile?]<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>DOES THE PROBLEM AFFECT:</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">       
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">        OTHER (please specify)?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">        Our application is hanging<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>SYNOPSIS:</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
</span>DON’T_CALL instead NULL_MASK  solved the issue<span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>DESCRIPTION:</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">     
</span>We are using ACE_Reactor pattern to register and take the reaction on certain handles.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">We are using remove handler with NULL_MASK to remove the handle forcefully at destructor  from ace internal handler as follows<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">HttpCommand::~HttpCommand()<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Courier New"">{</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">        thePReactor->remove_handler(<span style="color:blue">this</span>->m_shutDownEvent->handle(),ACE_Event_Handler::NULL_MASK);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">      }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:blue">int</span><span style="font-size:10.0pt;font-family:"Courier New""> HttpCommand::handle_close (ACE_HANDLE handle, ACE_Reactor_Mask
 close_mask)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">      UNREFERENCED_PARAMETER(close_mask);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">      UNREFERENCED_PARAMETER(handle);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">    ACE_DEBUG((LM_DEBUG,<span style="color:#A31515">"HttpCommand::handle_close \n"</span>));<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">      m_safeToDestructEvent.signal();<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">   
<span style="color:blue">return</span> 0;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Courier New"">}<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in">The call back <span style="font-size:10.0pt;font-family:"Courier New"">
handle_close() </span>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 shown in below  call stack<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">and we don’t see that call back gets invoked at these times(When app hangs)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Changing the reactor mask type to <b>
<span style="font-size:10.0pt;font-family:"Courier New"">DONT_CALL </span></b>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?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Does this wait for any process mutex to invoke handle_close callback.?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">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<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:49.85pt">
<tbody>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">           
<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">KERNELBASE!WaitForSingleObjectEx+98<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">kernel32!WaitForSingleObjectExImplementation+75<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">kernel32!WaitForSingleObject+12<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_OS::mutex_lock+2b [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\os.i @ 1390 + f]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\os.i @ 1390 + f<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Mutex::acquire+10 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\synch.i @ 164 + 9]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\synch.i @ 164 + 9<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Process_Mutex::acquire+12 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\process_mutex.inl @ 25]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\process_mutex.inl @ 25<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Guard<ACE_Process_Mutex>::acquire+11 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\synch_t.i @ 9 + a]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\synch_t.i @ 9 + a<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Guard<ACE_Process_Mutex>::ACE_Guard<ACE_Process_Mutex>+21 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\synch_t.i @ 36]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\synch_t.i @ 36<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_WFMO_Reactor::register_handler+37 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\wfmo_reactor.i @ 493 + f]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\wfmo_reactor.i @ 493 + f<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Reactor::register_handler+52 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\reactor.i @ 247 + 28]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\reactor.i @ 247 + 28<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">logd!LoggerFileConfiguration::RegisterStatisticsHandler+5bc3<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">logd!LoggerFileConfiguration::RegisterStatisticsHandler+9778<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">logd!LoggerFileConfiguration::RegisterStatisticsHandler+233fc<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Log_Msg::log+83 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\log_msg.cpp @ 1989 + 1c]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\log_msg.cpp @ 1989 + 1c<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Log_Msg::log+1c98 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\log_msg.cpp @ 1888 + 16]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\log_msg.cpp @ 1888 + 16<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">aced!ACE_Log_Msg::log+20 [f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\log_msg.cpp @ 876 + 14]<o:p></o:p></span></p>
</td>
<td nowrap="" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">f:\views\isitepacs\trunk\thirdparty\ace_wrappers\ace\log_msg.cpp @ 876 + 14<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">   
<b>REPEAT BY:</b><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Courier New";color:black">[What you did to get the error; include test program or session<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Courier New";color:black">transcript if at all possible.  ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Courier New";color:black">    SAMPLE FIX/WORKAROUND:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt;font-family:"Courier New";color:black">[If available ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">     
</span>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<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Gudugunta, Sukumar <br>
<b>Sent:</b> Tuesday, July 14, 2015 4:33 AM<br>
<b>To:</b> 'ace-users@list.isis.vanderbilt.edu'<br>
<b>Subject:</b> Need help to resolve the hang with ACE Reactor usage<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi All<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We are using ACE_Reactor pattern to register and take the reaction on certain handles.<o:p></o:p></p>
<p class="MsoNormal">We are using remove handler with NULL_MASK to remove the handle forcefully from ace internal handler as follows<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">thePReactor->remove_handler(<span style="color:blue">this</span>->m_shutDownEvent->handle(),ACE_Event_Handler::NULL_MASK);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:blue">int</span><span style="font-size:10.0pt;font-family:"Courier New""> HttpCommand::handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">{<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">      UNREFERENCED_PARAMETER(close_mask);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">      UNREFERENCED_PARAMETER(handle);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">    ACE_DEBUG((LM_DEBUG,<span style="color:#A31515">"HttpCommand::handle_close \n"</span>));<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">      m_safeToDestructEvent.signal();<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New"">   
<span style="color:blue">return</span> 0;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal">The call back <span style="font-size:10.0pt;font-family:"Courier New"">
handle_close() </span>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<o:p></o:p></p>
<p class="MsoNormal">and we don’t see that call back gets invoked at these times(When app hangs)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Changing the reactor mask type to <b><span style="font-size:10.0pt;font-family:"Courier New"">DONT_CALL
</span></b>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?<o:p></o:p></p>
<p class="MsoNormal">Does this wait for any process mutex to invoke handle_close callback.?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal">Sukumar<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">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.<br>
</font>
</body>
</html>