Net::HTTP.read_timeout is ignored, timeout is intinite instead (leading to
massive accumulation of sockets and reading threads)
-------------------------------------------------------------------------------------------------------------------------------
Key: JRUBY-3154
URL: http://jira.codehaus.org/browse/JRUBY-3154
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.5, JRuby 1.1.4
Environment: Linux Kernel 2.6
Reporter: Xuân Baldauf
Assignee: Thomas E Enebo
There is an attribute Net::HTTP.read_timeout and a method
java.net.Socket.setSoTimeout(). Unfortunately, they are not connected to each
other.
This means that TCP connections remain open infinitely as each reader thread
wants to read from the connection and never times out.
This means that, over time, threads and TCP connections and sockets and used
filedescriptors accumulate, leading to filedescriptor leaks, memory leaks,
thread leaks, and the like.
--
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