I apologize, I forgot to include the version:

curl 7.19.6 (i386-redhat-linux-gnu) libcurl/7.19.6 NSS/3.12.4.1 Beta zlib/1.2.3 
libidn/1.9 libssh2/1.0
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: GSS-Negotiate IDN IPv6 Largefile SSL libz 

Thanks,
Kevin





________________________________
From: Kevin Baughman <[email protected]>
To: [email protected]
Sent: Thu, October 15, 2009 10:30:23 AM
Subject: Double close with SSL


Hi all,

I was seeing an issue where a file descriptor in a heavily threaded application 
was being closed from under me.  I think I traced it back to a double close in 
curl, and am able to simply reproduce using a single curl command:
curl https://customers.countrywide.com/protected/entry_authenticated.asp

If I run this under strace:
strace curl https://customers.countrywide.com/protected/entry_authenticated.asp

Notice at the bottom of the trace:
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
send(3, "\25\3\1\0\22\303\200\346g \201\364r\315\33\26\1\370*\214\21<%"..., 23, 
0) = 23
close(3)                                = 0
close(3)                                = -1 EBADF (Bad file descriptor)

Thanks,
Kevin


      
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to