diff options
author | Kamil Dudka <kdudka@redhat.com> | 2010-11-19 13:43:20 +0100 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2010-12-06 14:35:42 +0100 |
commit | 5c7c9a768d009319520142fcaee1dea33625060f (patch) | |
tree | a8c31c739426e32edb76d9b86be951d9cb1191da /lib/openldap.c | |
parent | bf1c102b80698e60972063b269f61ccbe2bfeaa8 (diff) | |
download | curl-5c7c9a768d009319520142fcaee1dea33625060f.tar.gz |
url: provide dead_connection flag in Curl_handler::disconnect
It helps to prevent a hangup with some FTP servers in case idle session
timeout has exceeded. But it may be useful also for other protocols
that send any quit message on disconnect. Currently used by FTP, POP3,
IMAP and SMTP.
Diffstat (limited to 'lib/openldap.c')
-rw-r--r-- | lib/openldap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/openldap.c b/lib/openldap.c index e9dcfcc71..7010da6c2 100644 --- a/lib/openldap.c +++ b/lib/openldap.c @@ -61,7 +61,7 @@ static CURLcode ldap_do(struct connectdata *conn, bool *done); static CURLcode ldap_done(struct connectdata *conn, CURLcode, bool); static CURLcode ldap_connect(struct connectdata *conn, bool *done); static CURLcode ldap_connecting(struct connectdata *conn, bool *done); -static CURLcode ldap_disconnect(struct connectdata *conn); +static CURLcode ldap_disconnect(struct connectdata *conn, bool dead_connection); static Curl_recv ldap_recv; @@ -344,9 +344,10 @@ retry: return CURLE_OK; } -static CURLcode ldap_disconnect(struct connectdata *conn) +static CURLcode ldap_disconnect(struct connectdata *conn, bool dead_connection) { ldapconninfo *li = conn->proto.generic; + (void) dead_connection; if (li) { if (li->ld) { |