From: nobu.nokada@... Date: 2002-06-03T04:04:20+09:00 Subject: Re: Possible Bug in Ruby? Hi, At Sun, 2 Jun 2002 21:14:11 +0900, Yukihiro Matsumoto wrote: > |> Thanks for your patch! It worked like a charm to solve my problem. Will > |> it ever be included in the current or release version of ruby? > | > |# Persuade Matz of the requirement. :-) > | > |IMO, Sockets can be half-baked at exceptions, unless the patch. # half-baked wasn't be proper word. > Sorry, I didn't follow the discussion. Persuade me. Since ruby_connect() is interruptible an exception can raise there, a socket descriptor and an addrinfo in init_inetsock() aren't bound to any Object and won't be freed in such cases. It may be possible to bind them to any Object and leave it to GC, but I'd like to ensure they are freed locally. -- Nobu Nakada