Operating System - HP-UX
1823821 Members
3771 Online
109665 Solutions
New Discussion юеВ

Urgent!! EPIPE while writing on a IP socket

 
Enrico Venturi
Super Advisor

Urgent!! EPIPE while writing on a IP socket

Hello colleagues
I've two application communicating by means of IP sockets; the code has been debugged from a long time; now it happens that sometime one of them fails writing on the socket, errno=EPIPE...
the corresponding application doesn't detect the problem.
I think it depends on some kernel parameter to be tuned ... may be related to the IP or related to the kernel itself.
the system is HP-UX 11.0

please help me :-)
Enrico
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Urgent!! EPIPE while writing on a IP socket

Have a look at patch PHNE_28538. It may be relevant to you.

http://www1.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHNE_28538
Steven E. Protter
Exalted Contributor

Re: Urgent!! EPIPE while writing on a IP socket

There is a lot of information in this itrc search that hits on your error code.

I wonder what makes you feel its a kernel problem.

http://us-support.external.hp.com/emse/bin/doc.pl/sid=a0dcfb8319f8e5f201?todo=search&searchtext=errno%3DEPIPE&x=50&y=4&searchcriteria=allwords&searchtype=SEARCH_TECH_DOCS&searchtype=SEARCH_PATCH&searchcategory=HPUX_1100&searchtype=SEARCH_MANUAL&searchtype=SEARCH_FORUMS&searchcategory=ALL&rn=25&presort=rank

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Steele_2
Honored Contributor

Re: Urgent!! EPIPE while writing on a IP socket

Check your source code for these commands: fclose and puts.

From 'errno' link below:

EPIPE Broken pipe. Data has been written to a pipe for which the other (reading) end has been closed. This most often occurs when the reading process exits before the writing process. This condition also generates the signal SIGPIPE; the error is returned if the signal is ignored.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3921-90010/B3921-90010_top.html&con=/hpux/onlinedocs/B3921-90010/00/09/970-con.html&toc=/hpux/onlinedocs/B3921-90010/00/09/970-toc.html&searchterms=errno&queryid=20030627-172633

-or from 'fclose'

EPIPE] An attempt was made to write to a pipe that is not open for reading by any process. A SIGPIPE signal is also sent to the process.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3921-90010/B3921-90010_top.html&con=/hpux/onlinedocs/B3921-90010/00/13/1376-con.html&toc=/hpux/onlinedocs/B3921-90010/00/13/1376-toc.html&searchterms=EPIPE&queryid=20030627-172811

-or from 'puts'

EPIPE] An attempt is made to write to a pipe or FIFO that is not open for reading by any process. A SIGPIPE signal is also sent to the process.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3921-90010/B3921-90010_top.html&con=/hpux/onlinedocs/B3921-90010/00/17/1708-con.html&toc=/hpux/onlinedocs/B3921-90010/00/17/1708-toc.html&searchterms=EPIPE&queryid=20030627-172811
Support Fatherhood - Stop Family Law
Enrico Venturi
Super Advisor

Re: Urgent!! EPIPE while writing on a IP socket

The facts are that up to now the application worked fine, since 1999 .... and the same application still works fine in several other platforms ....
Therefore I think there's some relation between the enironment and this strange behaviour

thanks
enrico