Operating System - HP-UX
1829265 Members
2152 Online
109988 Solutions
New Discussion

AF_UNIX socket returns EMSGSIZE

 
hykim_1
New Member

AF_UNIX socket returns EMSGSIZE


I have an application consisting of two processes. The two are connected through an AF_UNIX connection. One sends messages to the other using sendmsg. The socket is in blocking mode. But, sendmsg returns EMSGSIZE when the receiving process stalls a while and the socket buffer fills up.

I found the patch below for 11.11 that exactly matches what I see. However, my system is HP-UX 11.23 IA64. Another system 11.31 IA64 also shows this problem. I thought this bug's supposed to have been fixed in later versions.

PHNE_23645:

( SR:8606113564 CR:JAGab76776 )
When using AF_UNIX sockets blocking sendmsg()
returns EMSGSIZE when receive side is
close to being full. This can happen on blocking or
non-blocking.

Has anyone seen this problem on 11.23 or later? I would really appreciate anyone who can shed light on this.
1 REPLY 1
Laurent Menase
Honored Contributor

Re: AF_UNIX socket returns EMSGSIZE

Typically this should be raised to HP support.