On Wed October 21 2009 15:35:33 Kevin Baughman wrote:
> >> Please ignore my previous mail. I am just reading the thread in reverse
> >> order, now seeing the strace :-) I am getting the same output on my
> >> Fedora box...
>
> Sounds good. Please let me know if you need anything else from me.
I've just traced the NSS/NSPR with debugger and it really closes the same
file descriptor as libcurl closes afterwards. This means your patch does
the right thing. Thanks for contributing it!
Kamil
Breakpoint 1, pt_Close (fd=0x6c5a90) at
../../../mozilla/nsprpub/pr/src/pthreads/ptio.c:1258
1258 {
(gdb) bt
#0 pt_Close (fd=0x6c5a90) at
../../../mozilla/nsprpub/pr/src/pthreads/ptio.c:1258
#1 0x00007ffff74c5b5e in ssl_DefClose (ss=0x6c6ff0) at ssldef.c:231
#2 0x00007ffff7ddb9eb in Curl_nss_close (conn=0x6424a0, sockindex=0) at
nss.c:927
#3 0x00007ffff7dcf713 in Curl_ssl_close (conn=0x6424a0, sockindex=0) at
sslgen.c:368
#4 0x00007ffff7dae275 in Curl_disconnect (conn=0x6424a0) at url.c:2414
#5 0x00007ffff7db284a in Curl_done (connp=0x7fffffffd538, status=CURLE_OK,
premature=false) at url.c:4897
#6 0x00007ffff7dbf00e in Curl_perform (data=0x625aa0) at transfer.c:2627
#7 0x00007ffff7dbfa13 in curl_easy_perform (curl=0x625aa0) at easy.c:557
#8 0x000000000040c182 in operate (config=0x7fffffffdaa0, argc=4,
argv=0x7fffffffdeb8) at main.c:4940
#9 0x000000000040cb89 in main (argc=4, argv=0x7fffffffdeb8) at main.c:5255
(gdb) print fd->secret->md.osfd
$1 = 9
(gdb) f 2
#2 0x00007ffff7ddb9eb in Curl_nss_close (conn=0x6424a0, sockindex=0) at
nss.c:927
927 PR_Close(connssl->handle);
(gdb) print conn->sock[sockindex]
$2 = 9
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html