Operating System - HP-UX
1834466 Members
2720 Online
110067 Solutions
New Discussion

recv failing with errno=0

 
Chris Dodenhoff
Occasional Contributor

recv failing with errno=0

We have a networking shared library used by several applications. When 2 such apps send messages (both running on the same box), with the receiver getting the message in 1024 byte blocks, occasionally the recv call fails (return value is -1) but has errno = 0. This can be dealt with, and the next recv call usually succeeds. I have not seen this behaviour documented, and I was wondering if anybody else has seen it and knows of any patches/solution? Although it can be dealt with, my worry is I'm ignoring something more fundamental. Further info that may be of use

1) The box is running HP-UX 11 version B.11.00, the last patch set is A.1.0

2) If the same code is compiled under 10.20 and run on 10.20 or 11.00, the problem does not seem to occur. It started happening when compiled under 11.00.

3) There is some evidence a similar thing occurs with the connect, select and fcntl calls

Thanks,

Chris
1 REPLY 1
harry d brown jr
Honored Contributor

Re: recv failing with errno=0

Make sure you have these patch sets installed first:

http://us-support.external.hp.com/xsw/bin/doc.pl/sid=f355bf8606cbea0559#5012-7960


live free or die
harry
Live Free or Die