[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_unbind unhandled SIGPIPE (ITS#5127)

ando@sys-net.it wrote:

> I've prepared a trivial client that ldap_sasl_bind_s(), holds on while I
> shut down the server, ldap_search_ext_s() with LDAP_SERVER_DOWN and
> ldap_unbind_ext().  Prior to patching, I always got SIGPIPE.

Let me add that the above patch does not work when using ldapi://; in
that case, the SIGPIPE occurs when first flushing a request on the
broken connection (in sb_stream_write()), while on regular INET sockets
the flush succeeds and the SIGPIPE prior to patching was returned much
later at unbind.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it