mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
ITS#6639 set sock err to EAGAIN on partial write
This commit is contained in:
parent
50a21d512f
commit
f32f1a45d4
1 changed files with 2 additions and 1 deletions
|
|
@ -733,8 +733,9 @@ sb_sasl_generic_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
|
|||
return ret;
|
||||
} else if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) {
|
||||
/* partial write? pretend nothing got written */
|
||||
len2 = 0;
|
||||
p->flags |= LDAP_PVT_SASL_PARTIAL_WRITE;
|
||||
sock_errset(EAGAIN);
|
||||
len2 = -1;
|
||||
}
|
||||
|
||||
/* return number of bytes encoded, not written, to ensure
|
||||
|
|
|
|||
Loading…
Reference in a new issue