<div dir="ltr">Hi Matt,<div><br></div><div>Sorry for delayed response. I was on leave.</div><div><br></div><div>Yes, ours is a library and we do not wish to ignore the signal process wide because the consumer of our library (application) might want to handle the SIGPIPE for there own socket handling.</div><div><br></div><div>Thanks,</div><div>Mahesh G S</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 27, 2017 at 4:36 PM, Matt Caswell <span dir="ltr"><<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 27/04/17 11:56, mahesh gs wrote:<br>
> Hi,<br>
><br>
> We are using Openssl for establish a secure communications for both<br>
> TCP/SCTP connections.<br>
><br>
> In our application it is possible that remote end forcefully disconnect<br>
> the connection due to which<br>
><br>
> SSL_Write raises a SIGPIPE which we want to suppress. Does openssl<br>
><br>
> provide any way to set MSG_NOSIGNAL on sendmsg (Underlying TCP/IP socket<br>
> layer) ?<br>
<br>
</span>No, there is no option to do that at the moment.<br>
<span class=""><br>
><br>
> Unfortunately we cannot use "setsockopt" with "SO_NOSIGPIPE"  as it is<br>
> not supported by LINUX<br>
><br>
> and also we are unable to stop the SIGPIPE with function call<br>
> signal(SIGPIPE, SIG_IGN).<br>
<br>
</span>Unable because you want SIGPIPE for other areas of your application? Or<br>
for some other reason?<br>
<span class="HOEnZb"><font color="#888888"><br>
Matt<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br>
</div></div></blockquote></div><br></div></div>