<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 2: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 02/05/17 06:59, mahesh gs wrote:<br>
> Hi Matt,<br>
><br>
> Sorry for delayed response. I was on leave.<br>
><br>
> Yes, ours is a library and we do not wish to ignore the signal process<br>
> wide because the consumer of our library (application) might want to<br>
> handle the SIGPIPE for there own socket handling.<br>
<br>
</span>Could you use pthread_sigmask() to only block SIGPIPE for the current<br>
thread (perhaps unblocking it again before returning control back to the<br>
caller of your library)?<br></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for your suggestion. We will try to adapt this work around.<br><br>
<span class=""><br>
><br>
> Thanks,<br>
> Mahesh G S<br>
><br>
> On Thu, Apr 27, 2017 at 4:36 PM, Matt Caswell <<a href="mailto:matt@openssl.org">matt@openssl.org</a><br>
</span><span class="">> <mailto:<a href="mailto:matt@openssl.org">matt@openssl.org</a>>> wrote:<br>
><br>
><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>
>     No, there is no option to do that at the moment.<br>
><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>
>     Unable because you want SIGPIPE for other areas of your application? Or<br>
>     for some other reason?<br>
><br>
>     Matt<br>
>     --<br>
>     openssl-users mailing list<br>
>     To unsubscribe:<br>
>     <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>
</span>>     <<a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><wbr>><br>
<div class="HOEnZb"><div class="h5">><br>
><br>
><br>
><br>
--<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>