curl-library
Re: PATCH: Establishing data connections in FTP has been made non-blocking for multi interface
Date: Wed, 21 Dec 2011 00:20:32 +0200
> I have implemented required functionality to make "Establishing data
>> connections in FTP non-blocking for multi interface".
>>
>
> Thank you!
>
>
Thanks you too for the encouragement and help afterwards in cleaning up the
way things are done. I am going to apply your changes some torture a few
days later to see everything is still working but after a quick look, I
think I noticed a potential bug.
In function Curl_socket_check with commit
5527417afae062d7a2b12ee80730a0ab22b86eab,
you seem to leave "pfd" array's size as 2 but it could potentially be 3
(readfd0 + readfd1 + writefd) and may lead stack corruption when for some
condition all three are to be watched. Currently it is no problem since at
most two sockets are being polled.
Thanks again and have a nice evening!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-20