-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 2:57 AM
To: [EMAIL PROTECTED]
Subject: [ace-bugs] Digest Number 960


------------------------ Yahoo! Groups Sponsor ---------------------~-->
KnowledgeStorm has over 22,000 B2B technology solutions. The most comprehensive IT 
buyers' information available. Research, compare, decide. E-Commerce | Application Dev 
| Accounting-Finance | Healthcare | Project Mgt | Sales-Marketing | More
http://us.click.yahoo.com/IMai8D/UYQGAA/cIoLAA/r9ewlB/TM
---------------------------------------------------------------------~->

There is 1 message in this issue.

Topics in this digest:

      1. RE: Re: [ace-users] Bug? in ACE_Connector::connect_i
           From: "Kobi Cohen Arazi" <[EMAIL PROTECTED]>


________________________________________________________________________
________________________________________________________________________

Message: 1
   Date: Sun, 7 Dec 2003 11:49:26 +0200
   From: "Kobi Cohen Arazi" <[EMAIL PROTECTED]>
Subject: RE: Re: [ace-users] Bug? in ACE_Connector::connect_i

Steve,

As I promised, I've checked it again, with a clean machine and build.
The original source (without the modification) works. (But ofcourse :-)
And it should be ...
ACE_SOCKCALL_RETURN sets the errno using ::WSAGetLastError() ...
If that isn't working - nothing will  ...

There was an include/lib mess on the machine where that problem was introduced to me.

Thanks,
Kobi.


-----Original Message-----
From: Kobi Cohen-Arazi [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 6:24 PM
To: Steve Huston
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ace-bugs] Re: [ace-users] Bug? in ACE_Connector::connect_i


Hi Steve,

Yes,
I've changed errno to ACE_OS::last_error(). And it worked .
The strange thing was in that point ACE_OS::last_error() == 10035 and 
errno == 0 (I've added ACE_DEBUG to that point to verify that), and the 
server side doing the accept call - succeeded.

PS. Maybe we need to swap the rest of the code so more cases like that
won't happen ?

Thanks,
Kobi.

Steve Huston wrote:
> Hi Kobi,
> 
> Did you try this fix on your system? If not, please do and let us know
> how it works.
> 
> Thanks,
> 
> -Steve
> 
> --
> Steve Huston, Riverace Corporation
> Co-author of "C++ Network Programming" and "The ACE Programmer's
> Guide"
> Books, ACE kit and support info at http://www.riverace.com/ 
> 
> 
>>-----Original Message-----
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf Of Kobi Cohen-Arazi
>>Sent: Thursday, December 04, 2003 10:19 AM
>>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>>Subject: [ace-users] Bug? in ACE_Connector::connect_i
>>
>>
>>Hi All,
>>
>>     ACE VERSION: 5.3.3
>>
>>     HOST MACHINE and OPERATING SYSTEM:
>>      Win2k sp4 server.
>>      Winsock2 5.0.2195.6601
>>
>>     COMPILER NAME AND VERSION (AND PATCHLEVEL):
>>      .NET 7.1 (2003)
>>
>>     CONTENTS OF $ACE_ROOT/ace/config.h:
>>      #include "config-win32.h"
>>
>>
>>     AREA/CLASS/EXAMPLE AFFECTED:
>>      ACE_Connector::connect_i
>>
>>     DOES THE PROBLEM AFFECT:
>>         EXECUTION?
>>      Yes, The following seems to be incorrect:
>>      ....
>>        if (result == -1)
>>          {
>>            if (use_reactor && errno == EWOULDBLOCK)
>>              {
>>      ....
>>      Checkin against errno and not against 
>>ACE_OS::last_error() is buggy.
>>
>>      I am using ACE_Synch_Options::async, and ::connect() returns
> 
> -1
> 
>>      with EWORULDBLOCK. However on win32 errno == 0.
>>
>>      The soultion will be checking against 
>>ACE_OS::last_error() which is 
>>very important to do so on win32 platforms.
>>
>>Thanks,
>>Kobi.
>>
> 
> 
> 
> 
> 





________________________________________________________________________
________________________________________________________________________



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to