TCPServer doesn't close connection properly using blocks
--------------------------------------------------------
Key: JRUBY-1266
URL: http://jira.codehaus.org/browse/JRUBY-1266
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.0.0
Environment: jruby -v
ruby 1.8.5 (2007-06-07 rev 3841) [ppc-jruby1.0]
Reporter: Fabian Buch
Assignee: Thomas E Enebo
TCPServer should release the socket when called via block, but it doesn't in
jruby:
irb(main):005:0> TCPServer.open("localhost", 7000){ true }
=> #<TCPServer:0x55bf9c>
irb(main):006:0> TCPServer.open("localhost", 7000){ true }
Errno::EADDRINUSE: Address in use
from (irb):6:in `binding'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:150:in
`eval_input'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:70:in
`signal_status'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:189:in
`eval_input'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:70:in
`each_top_level_statement'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:190:in `loop'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:190:in `catch'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:190:in
`eval_input'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:70:in `start'
from :-1:in `catch'
from /Volumes/ib/download/jruby-1.0/lib/ruby/1.8/irb.rb:71:in `start'
from :-1
--
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