[1.9] read_nonblock and read_partial should extend EAGAIN and EWOULDBLOCK with
IO::WaitReadable
-----------------------------------------------------------------------------------------------
Key: JRUBY-4506
URL: http://jira.codehaus.org/browse/JRUBY-4506
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Ruby 1.9
Affects Versions: JRuby 1.5
Reporter: Charles Oliver Nutter
>From JRUBY-4504:
"In 1.9, net/protocol (used by net/http, used by Gem's remote_fetcher) uses
read_nonblock to fetch data. read_nonblock is supposed to raise EAGAIN when
there's no data available, which Vladimir recently fixed in JRuby. However in
1.9, EAGAIN raised from read_nonblock is also supposed to .extend
IO::WaitReadable, which is what net/protocol expects to rescue for retries.
Since we didn't do that, the EAGAIN went all the way out, sources failed to
read properly, and gems would not install.
"I pushed a fix in a1f900f for read_nonblock, but there should be similar fixes
for read_partial and for EWOULDBLOCK. I'll file a separate bug for those, and
for specs to be added to RubySpec."
This is that bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email