cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using fopensocket instead of direct socket call

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 4 Dec 2011 23:12:50 +0100 (CET)

On Fri, 2 Dec 2011, Gokhan Sengun wrote:

> in function ftp_state_use_port(), direct call to socket() is used. However
> upon closing the socket fclosesocket function is used. It looks to me (if
> not missing something), it should check whether fopensocket is set and call
> this function if happens to be so.

Here's my two new test cases to verify that open/close socket callback are
paired up properly - test 596 currently fails due to this mentioned bug. I'm
slowly working on a fix.

-- 
  / daniel.haxx.se


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

Received on 2011-12-04