First cut to truly async connect:
- after connect(2), if async the connection is in "connecting" state - the first time a request is sent, "connecting" conns are polled - in case of success, the request is sent - in case still connecting, LDAP_X_CONNECTING is returned; clients are expected to retry later - the "async" behavior must be explicitly enabled by setting the LDAP_OPT_CONNECT_ASYNC option "local" connections need work
Showing
- include/ldap.h 2 additions, 0 deletionsinclude/ldap.h
- libraries/libldap/ldap-int.h 3 additions, 0 deletionslibraries/libldap/ldap-int.h
- libraries/libldap/options.c 12 additions, 0 deletionslibraries/libldap/options.c
- libraries/libldap/os-ip.c 144 additions, 8 deletionslibraries/libldap/os-ip.c
- libraries/libldap/request.c 35 additions, 5 deletionslibraries/libldap/request.c
Loading
Please register or sign in to comment