mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
For prev commit, check for EINTR/EAGAIN/EWOULDBLOCK
This commit is contained in:
parent
a05d7015e0
commit
405c68abf9
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ sb_sasl_generic_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
|||
/* error? */
|
||||
int err = sock_errno();
|
||||
/* caller can retry this */
|
||||
if ( err == EAGAIN )
|
||||
if ( err == EAGAIN || errno == EWOULDBLOCK || errno == EINTR )
|
||||
p->flags |= LDAP_PVT_SASL_PARTIAL_WRITE;
|
||||
return ret;
|
||||
} else if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue