mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix previous commit - use EWOULDBLOCK instead of EAGAIN
This commit is contained in:
parent
e7d2d0a9f5
commit
1dd1c375bb
2 changed files with 2 additions and 2 deletions
|
|
@ -335,7 +335,7 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
|||
return ret;
|
||||
/* Still have something left?? */
|
||||
if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) {
|
||||
errno = EAGAIN;
|
||||
errno = EWOULDBLOCK;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ ldap_int_flush_request(
|
|||
LDAPConn *lc = lr->lr_conn;
|
||||
|
||||
if ( ber_flush( lc->lconn_sb, lr->lr_ber, 0 ) != 0 ) {
|
||||
if ( errno == EWOULDBLOCK || errno == EAGAIN ) {
|
||||
if ( errno == EWOULDBLOCK ) {
|
||||
/* need to continue write later */
|
||||
lr->lr_status = LDAP_REQST_WRITING;
|
||||
ldap_mark_select_write( ld, lc->lconn_sb );
|
||||
|
|
|
|||
Loading…
Reference in a new issue