<HTML>
<HEAD>
<TITLE>Librabbitmq</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hey Tony &amp; gang,<BR>
<BR>
I am having some trouble with the librabbitmq library, and I am hoping you can help me out. We have managed to created a situation whereby a connection gets closed down, but the PHP client does not know about it yet. As a result, when it tries to clean itself up with amqp_channel_close(), a SIGPIPE is thrown and PHP gets all kinds of pissed off. I was wondering if you could help me either:<BR>
1. catch SIGPIPE in the PHP C client somehow. (I am a n00b.)<BR>
2. pass some sort of flag to the connection to ignore SIGPIPE and return false instead. In case you are as clueless as I am (I am sure you are not, but just in case) I found this:<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>setsockopt</SPAN></FONT></FONT><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:11pt'>(sd, SOL_SOCKET, SO_NOSIGPIPE, (void *)&amp;set, sizeof(int));<BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
<BR>
Thanks!<BR>
Pieter</FONT></SPAN>
</BODY>
</HTML>