version 1.76, 2009/10/26 22:36:39
|
version 1.77, 2009/10/26 22:52:55
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.75 2009/10/26 18:19:20 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.76 2009/10/26 22:36:39 hyc Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2009 The OpenLDAP Foundation. |
* Copyright 1998-2009 The OpenLDAP Foundation. |
Line 728 sb_sasl_generic_write( Sockbuf_IO_Desc *
|
Line 728 sb_sasl_generic_write( Sockbuf_IO_Desc *
|
/* error? */ |
/* error? */ |
int err = sock_errno(); |
int err = sock_errno(); |
/* caller can retry this */ |
/* caller can retry this */ |
if ( err == EAGAIN ) |
if ( err == EAGAIN || errno == EWOULDBLOCK || errno == EINTR ) |
p->flags |= LDAP_PVT_SASL_PARTIAL_WRITE; |
p->flags |= LDAP_PVT_SASL_PARTIAL_WRITE; |
return ret; |
return ret; |
} else if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) { |
} else if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) { |