I personally don't know why pipes are even in use in the openssl
internals (though I bet there is a good reason for it :-)

Ignoring SIGPIPE (or most signals for that matter) is not really
that good. They get generated for good reasons.

In my case, depending on what came down the wire, I have to interact
with other utilities in the system, therefore opening pipes. I need
to make sure I get the signals when a system tool exits unexpectedly.

Alberto

On Sun, 2006-02-12 at 22:45 -0700, Kyle Hamilton wrote:
> Why are you trying to avoid SIGPIPE, anyway?  It's easy to ignore, and
> a global state would make it possible to determine what socket you
> were writing on (if you needed that).
> 
> -Kyle H
> 
> On 2/12/06, Gayathri Sundar <[EMAIL PROTECTED]> wrote:
> > Probably you can call the following
> >
> > iRet = SSL_get_shutdown(pSSL);
> > if(iRet >= 0) SSL_shutdown(pSSL);
> >
> > This is because, SSL_shutdown writes data on the wire,
> > i.e the closure alerts..and if a FIN was received meanwhile,
> > you will catch a SIGPIPE..this piece of code, actually
> > saves me from this..
> >
> > Thanks
> > --G3
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Alberto Alonso
> > Sent: Sunday, February 12, 2006 2:08 PM
> > To: openssl-users@openssl.org
> > Subject: SSL_shutdown and SIGPIPE
> >
> >
> > I am getting SIGPIPE signals under Linux when calling
> > on SSL_shutdown and the remote is gone.
> >
> > Basically, the remote end terminates the connection abruptly,
> > then the server finishes doing whatever is doing and issues
> > a SSL_shutdown on the ssl structure that used to handle the
> > connection. This generates a SIGPIPE on the server.
> >
> > Is there anything I should be checking for before calling
> > SSL_shutdown to make sure the connection is still OK?
> >
> >
> > Thanks,
> >
> > Alberto
> > --
> > Alberto Alonso                        Global Gate Systems LLC.
> > (512) 351-7233                        http://www.ggsys.net
> > Hardware, consulting, sysadmin, monitoring and remote backups
> >
> > ______________________________________________________________________
> > OpenSSL Project                                 http://www.openssl.org
> > User Support Mailing List                    openssl-users@openssl.org
> > Automated List Manager                           [EMAIL PROTECTED]
> >
> > ______________________________________________________________________

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to