Commit 50b33cc6 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

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.
parent 86b486e2
......@@ -184,7 +184,8 @@ ldap_int_flush_request(
LDAP_ASSERT_MUTEX_OWNER( &ld->ld_conn_mutex );
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 */
lr->lr_status = LDAP_REQST_WRITING;
ldap_mark_select_write( ld, lc->lconn_sb );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment