cURL / Mailing Lists / curl-library / Single Mail


Re: Using fopensocket instead of direct socket call

From: Daniel Stenberg <>
Date: Wed, 7 Dec 2011 16:05:06 +0100 (CET)

On Wed, 7 Dec 2011, Gokhan Sengun wrote:

> Thanks for the fixes. Merging and testing the fix today, I noticed a small
> problem. When the connection is re-used, opensocket calls are not matching
> closesocket calls because conn->sock_accepted[SECONDARYSOCKET] is never set
> to FALSE after being set to TRUE in the first accept.
> Below change seems to fix the problem. Any comment?

Thanks. You're right of course about the problem, but I think I managed to do
your fix in a slightly nicer way that I've just pushed!

List admin:
Received on 2011-12-07