From: GOTOU Yuuzou Date: 2005-05-13T12:59:47+09:00 Subject: Re: Fix for the Webrick "Errno::EINVAL: Invalid argument" error Hi, In message <20050511235118.AF182355B2@beryllium.ruby-lang.org>, `"Yura Kloubakov" ' wrote: > It happens because IO.select returns [[sock], [], []] while client has > closed its side of the connection. The fix can be as simple as adding > test for the sock.eof to the raise statement: > > raise HTTPStatus::EOFError if timeout <= 0 || sock.eof? Thanks. Should I apply it to Ruby 1.9 too? -- gotoyuzo