Operating System - HP-UX
1821869 Members
3204 Online
109638 Solutions
New Discussion

close() socket behaves differently on Itanium

 
Sergiu Bivol
New Member

close() socket behaves differently on Itanium

We have 2 machines patched up to Sept 2004:
1. HP-UX B.11.23 U 9000/800 812940610
2. HP-UX hprx01 B.11.23 U ia64 2986112233
using aCC to build our software.

The problem that we see ia64 machine (but not on the PA-RISC machine) can be summarized as follows:
- a thread blocks in a socket recv()/read()
- another thread calls shutdown() and then close() on this socket
- at this point, we'd expect recv() to exit with -1, but it doesn't.

On the PA-RISC machine, recv() will return -1 as soon as close() is called.

What is the expected behavior and why this diference on the 2 platforms?

Thanks in advance for your time. Regards,
Sergiu