Re: [gnet-dev] [PATCH] Close socket on error condition



Fixed, thanks!  (Will commit soon.)

I added g_warnings()s in the two fnctl checks too.  I don't know why
they'd fail.

David


On Fri, 2003-08-08 at 19:42, Hans Petter Jansson wrote:
> There's a potential fd leak in the tcp connect code, and I've seen it in
> practice as well, when trying to connect to invalid IPs or getting a
> destination-unreachable immediately when trying to connect. There are a
> couple of other error conditions that can potentially cause this too.
> 
> So here's a small patch to remedy that.
> 
> --
> Hans Petter
-- 
David Helder - dhelder gizmolabs org - http://www.gizmolabs.org/~dhelder




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]