[ace-users] Regarding ACE_Asynch_Acceptor

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Tue Jun 19 03:25:40 CDT 2007


Hi KrishnaKumar,

Thanks for using the PRF!

>    ACE VERSION: 5.4

ACE 5.4 is very old.  Please upgrade to ACE+TAO+CIAO x.5.8 (i.e., ACE
5.5.8, TAO 1.5.8, and CIAO 0.5.8), which you can download from

http://download.dre.vanderbilt.edu

under the heading: "Latest Beta Kit".

The DOC groups at Washington University, UC Irvine, and Vanderbilt
University only provide "best effort" support for non-sponsors for the
latest release, as described in

http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/docs/ACE-bug-process.html

Thus, if you need more "predictable" help for earlier versions of
ACE+TAO, I recommend that you check out

http://www.dre.vanderbilt.edu/support.html

for a list of companies that will provide you with ACE+TAO commercial
support.

Thanks,

        Doug


>=20
>
>    HOST MACHINE and OPERATING SYSTEM:
>
>        Windows 2003, SP1 and the winsock version 2.0.
>
>=20
>
>    TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
>
>    COMPILER NAME AND VERSION (AND PATCHLEVEL):
>
>      Microsoft Visual C++ 6.0 and no service pack.
>
>=20
>
>    CONTENTS OF $ACE_ROOT/ace/config.h:
>
>      #ifdef WIN32
>
>#include "ace/config-win32.h"
>
>#else
>
>#include "config-aix5.1.h"
>
>#endif
>
>=20
>
>=20
>
>    CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU
>(unless
>
>    this isn't used in this case, e.g., with Microsoft Visual C++):
>
>      Using Microsoft Visual C++.
>
>   =20
>
>    AREA/CLASS/EXAMPLE AFFECTED:
>
>ACE_Asynch_Acceptor
>
>=20
>
>    DOES THE PROBLEM AFFECT:
>
>        EXECUTION
>
>  Right now I'm unable to say if it is the application or the ACE which
>is affected by the problem
>
>=20
>
>    SYNOPSIS:
>
>While using Asynchronous I/O for Sockets, the application runs for some
>time, but after a while, the handle_accept method fails to accept new
>connections.
>
>=20
>
>    DESCRIPTION:
>
>I have written a TCP server using Asynchronous I/O in Windows 2003, SP1.
>The server works for some time in without issues, but after sometime,
>the ACE_Asynch_Acceptor::make_handler() method throws exception while
>creating the handler object, though there is enough memory available in
>the system. I have overridden the Asynch_Acceptor's handle_connect
>method to print some log messages. I have also overridden the handler's
>open and addresses method and both methods has a log message as the
>first statement. This message has never got into the log file once the
>issues crops up.
>
>=20
>
>If anyone has got similar error, please provide me with pointer as to
>where I should look into for the issues. At this point I'm unable to
>tell if the error is in application or not. I'm doing similar thing as
>given in the C++NP V2.
>
>=20
>
>Thanks and regards,
>
>krishnakumar
>
>=20
>
>               =20
>
>=20
>
>
>
>DISCLAIMER:
>This email (including any attachments) is intended for the sole use of =
>the intended recipient/s and may contain material that is CONFIDENTIAL =
>AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
>copying or distribution or forwarding of any or all of the contents in =
>this message is STRICTLY PROHIBITED. If you are not the intended =
>recipient, please contact the sender by email and delete all copies; =
>your cooperation in this regard is appreciated.
>
>------_=_NextPart_001_01C7B244.C446F40E
>Content-Type: text/html;
>	charset="us-ascii"
>Content-Transfer-Encoding: quoted-printable
>
><html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
>xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
>xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
>xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
>xmlns=3D"http://www.w3.org/TR/REC-html40">
>
><head>
><meta http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Dus-ascii">
><meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
><style>
><!--
> /* Font Definitions */
> @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:blue;
>	text-decoration:underline;}
>a:visited, span.MsoHyperlinkFollowed
>	{mso-style-priority:99;
>	color:purple;
>	text-decoration:underline;}
>p
>	{mso-style-priority:99;
>	mso-margin-top-alt:auto;
>	margin-right:0in;
>	mso-margin-bottom-alt:auto;
>	margin-left:0in;
>	font-size:12.0pt;
>	font-family:"Times New Roman","serif";}
>span.EmailStyle17
>	{mso-style-type:personal;
>	font-family:"Calibri","sans-serif";
>	color:windowtext;}
>span.EmailStyle19
>	{mso-style-type:personal-reply;
>	font-family:"Calibri","sans-serif";
>	color:#1F497D;}
>.MsoChpDefault
>	{mso-style-type:export-only;
>	font-size:10.0pt;}
>@page Section1
>	{size:8.5in 11.0in;
>	margin:1.0in 1.0in 1.0in 1.0in;}
>div.Section1
>	{page:Section1;}
>-->
></style>
><!--[if gte mso 9]><xml>
> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
></xml><![endif]--><!--[if gte mso 9]><xml>
> <o:shapelayout v:ext=3D"edit">
>  <o:idmap v:ext=3D"edit" data=3D"1" />
> </o:shapelayout></xml><![endif]-->
></head>
>
><body lang=3DEN-US link=3Dblue vlink=3Dpurple>
>
><div class=3DSection1>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; ACE VERSION: =
>5.4<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; HOST MACHINE and OPERATING
>SYSTEM:<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><b><i><span =
>style=3D'font-size:
>10.0pt;font-family:"Courier =
>New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows
>2003, SP1 and the winsock version 2.0.<o:p></o:p></span></i></b></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; TARGET MACHINE and =
>OPERATING
>SYSTEM, if different from HOST:<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; COMPILER NAME AND VERSION =
>(AND
>PATCHLEVEL):<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><b><i><span =
>style=3D'font-size:
>10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>Microsoft
>Visual C++ 6.0 and no service pack.<o:p></o:p></span></i></b></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; CONTENTS OF =
>$ACE_ROOT/ace/config.h:<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><b><i><span =
>style=3D'font-size:
>10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
></span></i></b><b><i><span
>style=3D'font-family:"Courier New"'>#ifdef =
>WIN32<o:p></o:p></span></i></b></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><b><i><span
>style=3D'font-family:"Courier New"'>#include =
>&quot;ace/config-win32.h&quot;<o:p></o:p></span></i></b></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><b><i><span
>style=3D'font-family:"Courier New"'>#else<o:p></o:p></span></i></b></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><b><i><span
>style=3D'font-family:"Courier New"'>#include =
>&quot;config-aix5.1.h&quot;<o:p></o:p></span></i></b></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><b><i><span
>style=3D'font-family:"Courier New"'>#endif<o:p></o:p></span></i></b></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; CONTENTS OF
>$ACE_ROOT/include/makeinclude/platform_macros.GNU =
>(unless<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; this isn't used in this =
>case,
>e.g., with Microsoft Visual C++):<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Using =
>Microsoft
>Visual C++.<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; AREA/CLASS/EXAMPLE =
>AFFECTED:<o:p></o:p></span></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><span
>style=3D'font-size:10.0pt;font-family:"Courier =
>New"'>ACE_Asynch_Acceptor<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; DOES THE PROBLEM =
>AFFECT:<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>EXECUTION<o:p></o:p></span></p>
>
><p class=3DMsoNormal =
>style=3D'text-indent:.5in;text-autospace:none'><span
>style=3D'font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;Right =
>now I&#8217;m
>unable to say if it is the application or the ACE which is affected by =
>the
>problem<o:p></o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp; =
>&nbsp;SYNOPSIS:<o:p></o:p></span></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><span
>style=3D'font-size:10.0pt;font-family:"Courier New"'>While using =
>Asynchronous I/O
>for Sockets, the application runs for some time, but after a while, the =
>handle_accept
>method fails to accept new connections.<o:p></o:p></span></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><span
>style=3D'font-size:10.0pt;font-family:"Courier =
>New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; =
>DESCRIPTION:<o:p></o:p></span></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><span
>style=3D'font-size:10.0pt;font-family:"Courier New"'>I have written a =
>TCP server
>using Asynchronous I/O in Windows 2003, SP1. The server works for some =
>time in
>without issues, but after sometime, the =
>ACE_Asynch_Acceptor::make_handler()
>method throws exception while creating the handler object, though there =
>is
>enough memory available in the system. I have overridden the
>Asynch_Acceptor&#8217;s <b>handle_connect</b> method to print some log
>messages. I have also overridden the handler&#8217;s open and addresses =
>method
>and both methods has a log message as the first statement. This message =
>has
>never got into the log file once the issues crops =
>up.<o:p></o:p></span></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><span
>style=3D'font-size:10.0pt;font-family:"Courier =
>New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal style=3D'margin-left:.5in;text-autospace:none'>If =
>anyone has
>got similar error, please provide me with pointer as to where I should =
>look
>into for the issues. At this point I&#8217;m unable to tell if the error =
>is in
>application or not. I&#8217;m doing similar thing as given in the C++NP =
>V2.<o:p></o:p></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'><o:p>&nbsp;</o:p></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'>Thanks and
>regards,<o:p></o:p></p>
>
><p class=3DMsoNormal =
>style=3D'margin-left:.5in;text-autospace:none'>krishnakumar<o:p></o:p></p=
>>
>
><p class=3DMsoNormal style=3D'text-autospace:none'><span =
>style=3D'font-size:10.0pt;
>font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>
>
><p class=3DMsoNormal><span =
>style=3D'color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
>nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
>
><p class=3DMsoNormal><span =
>style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>
>
></div>
>
><p></p><p>DISCLAIMER:<br>This email (including any attachments) is =
>intended for the sole use of the intended recipient/s and may contain =
>material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any =
>review or reliance by others or copying or distribution or forwarding of =
>any or all of the contents in this message is STRICTLY PROHIBITED. If =
>you are not the intended recipient, please contact the sender by email =
>and delete all copies; your cooperation in this regard is =
>appreciated..</body>
>
></html>
>
>------_=_NextPart_001_01C7B244.C446F40E--
>


-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list