|
From: Venkatesh S. <Ven...@lc...> - 2004-07-01 13:32:26
|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please read the disclaimer at the bottom of this e-mail.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Leif,
I had just noticed that as well.
Made the change.
It would be nice if we could get a single binary and library working for 32=
and 64 bit Hp-UX.
Cheers,
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...]On Behalf Of Leif
Mortenson
Sent: 01 July 2004 14:12
To: wra...@li...
Subject: Re: [Wrapper-user] RE: [Wrapper-user]It worked: HP-UX 11i 64
bit:log level DEBUG crashes application
Venkatesh,
Great, glad that worked. The logs you sent me showed what I expected.
Go ahead and remove those debug log_printfs and use that until I am able=20
to get
the 3.1.1 release out the door. That should be fairly soon I am=20
working with a
couple users to get a FreeBSD issue resolved with it and then it is out=20
the door
It has been bugging as to why things had been working for you when DEBUG
was not enabled however.
Looking at the code, I see the problem. So make this one additional=20
change:
From the patch I sent you today:
---
if (len =3D=3D SOCKET_ERROR) {
err =3D wrapperGetLastError();
if (wrapperData->isDebugging) {
if ((err !=3D EWOULDBLOCK) && (err !=3D EAGAIN)
&& (err !=3D ENOTSOCK) && (err !=3D ECONNRESET)) {
log_printf(WRAPPER_SOURCE_PROTOCOL, LEVEL_DEBUG,
"socket read failed. (%s)", getLastErrorText());
wrapperProtocolClose();
}
}
---
Notice that the location of the isDebugging check is wrong. It should=20
be changed to
the following:
---
if (len =3D=3D SOCKET_ERROR) {
err =3D wrapperGetLastError();
if ((err !=3D EWOULDBLOCK) && (err !=3D EAGAIN)
&& (err !=3D ENOTSOCK) && (err !=3D ECONNRESET)) {
if (wrapperData->isDebugging) {
log_printf(WRAPPER_SOURCE_PROTOCOL, LEVEL_DEBUG,
"socket read failed. (%s)", getLastErrorText());
}
wrapperProtocolClose();
}
---
Now things should be correct if such a problem is ever encountered again.
Cheers,
Leif
.
Venkatesh Sellappa wrote:
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>Please read the disclaimer at the bottom of this e-mail.
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>Leif,
>
>Bingo !!!.
>It worked.
>
>On applying the below two patches, it worked.
>
>I think the key is that=20
>0.EWOULDBLOCK and EAGAIN constants in HP-UX have different values
>1.The test must be made for EAGAIN on accept and receive(for HP-UX)
>2.The constant EAGAIN is 11
>
>I have mailed you the log with the STATE_OUTPUT=3DTRUE.
>
>Thanks again for all the help.Much appreciated.
>Let me know if there is something else i can do.
>( removing the extra log_printf statements is a start ).
>
>Cheers,
> =20
>
**********************************************************************
This email is intended for the named recipient(s) only. Its contents
are confidential and may only be retained by the named recipient(s)
and may only be copied or disclosed with the consent of=20
LCH.Clearnet Limited. If you are not an intended recipient please
delete this e-mail and notify pos...@lc....
The contents of this email are subject to contract in all cases,=20
and LCH.Clearnet Limited makes no contractual commitment save where
confirmed by hard copy. LCH.Clearnet Limited accepts no liability,=20
including liability for negligence, in respect of any statement in=20
this email.
LCH.Clearnet Limited, Registered Office: Aldgate House,=20
33 Aldgate High Street, London EC3N 1EA. Recognised as a Clearing=20
House under the Financial Services & Markets Act 2000. Reg in England No.25=
932=20
Telephone: +44 20 7426 7000 Internet: http://www.lchclearnet.c=
om
**********************************************************************
|