FTP: close callback fix

Keep track of which sockets that are the result of accept() calls and
refuse to call the closesocket callback for those sockets. Test case 596
now verifies that the open socket callback is called the same number of
times as the closed socket callback for active FTP connections.

Bug: http://curl.haxx.se/mail/lib-2011-12/0018.html
Reported by: Gokhan Sengun
This commit is contained in:
Daniel Stenberg 2011-12-05 12:34:27 +01:00
parent 088ba97a24
commit d5b5f64bce
4 changed files with 11 additions and 6 deletions

View file

@ -19,7 +19,6 @@ moo
[CLOSE] counter: 2
moo
[CLOSE] counter: 1
[CLOSE] counter: 0
</datacheck>
</reply>