mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
ITS#8968 - Fix ASYNC connection on Solaris 10
Fixes ASYNC connections to handle a return code of ENOTCONN as this is what Solaris 10 does.
This commit is contained in:
parent
86b486e20a
commit
50b33cc6b8
1 changed files with 2 additions and 1 deletions
|
|
@ -184,7 +184,8 @@ ldap_int_flush_request(
|
||||||
|
|
||||||
LDAP_ASSERT_MUTEX_OWNER( &ld->ld_conn_mutex );
|
LDAP_ASSERT_MUTEX_OWNER( &ld->ld_conn_mutex );
|
||||||
if ( ber_flush2( lc->lconn_sb, lr->lr_ber, LBER_FLUSH_FREE_NEVER ) != 0 ) {
|
if ( ber_flush2( lc->lconn_sb, lr->lr_ber, LBER_FLUSH_FREE_NEVER ) != 0 ) {
|
||||||
if ( sock_errno() == EAGAIN ) {
|
if (( sock_errno() == EAGAIN ) || ( sock_errno() == ENOTCONN )) {
|
||||||
|
/* ENOTCONN is returned in Solaris 10 */
|
||||||
/* need to continue write later */
|
/* need to continue write later */
|
||||||
lr->lr_status = LDAP_REQST_WRITING;
|
lr->lr_status = LDAP_REQST_WRITING;
|
||||||
ldap_mark_select_write( ld, lc->lconn_sb );
|
ldap_mark_select_write( ld, lc->lconn_sb );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue