I can't see -D_REENTRANT argument on build files. I guess we need using -D_REENTRANT if we planning to use errno anywhere in the code, if there is no any other mechanism already in place.
-----Original Message----- From: Lilantha Darshana [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 9:55 AM To: Apache AXIS C Developers List Subject: RE: HTTPChannel.cpp exceptions Careful when using errno if not compliant with POSIX.1c. Because, POSIX.1, errno is defined as an external global variable, which is not thread safe. -----Original Message----- From: Andrew Perry2 [mailto:[EMAIL PROTECTED] Sent: Friday, January 28, 2005 5:21 AM To: Apache AXIS C Developers List Cc: Apache AXIS C Developers List Subject: Re: HTTPChannel.cpp exceptions Unix equivalent is errno and strerror(). I thought that all this was in the platfrom specific files already. And +1 for checking return status/error code and perhaps retrying connection. Although I think that there is a retry concept already in the code. Can anyone confirm. Regards, Andrew Perry IBM Web Services Client for C/C++ [EMAIL PROTECTED] Mail Point 127 IBM UK Laboratories. Hursley Park, Winchester, Hants. SO21 2JN Tel. Internal 249828 External + 44 (0)1962 819828 Fax. + 44(0)1962 818080 Fred Preston/UK/[EMAIL PROTECTED] MGB To "Apache AXIS C Developers List" 28/01/2005 09:55 <[email protected]> cc Please respond to Subject "Apache AXIS C Re: HTTPChannel.cpp exceptions Developers List" Hi John, If the channel fails at any stage, it should throw an exception because something unrecoverable is happening (on Windows we can use GetLastError() to find out what's happening - but I don't know if that is a standard C method (I see John has done something with this [GetLastError] in HTTPChannel)). I'll go through the Axis3 code and change where appropriate. At the moment, if there is an error in channel read/write the channel does not close. Perhaps by using the error reported by GetLastError we can make a decision on the severity of the error before just blindly closing the channel and throwing an exception. Any thoughts? Regards, Fred Preston. John Hawkins/UK/[EMAIL PROTECTED] To: [email protected] MGB cc: Subject: HTTPChannel.cpp exceptions 28/01/05 08:59 Please respond to "Apache AXIS C Developers List" Hi Samisa,Fred, when looking at the HTTPChannel yesterday I saw in openChannel sometimes we throw an exception and sometimes we just return a boolean - for the same evnt i.e. failng to open the channel. Did you mean this or should I change them all to throw an exception? John Hawkins
