Bug #3052: DRb::start_service fails to detect used port
http://redmine.ruby-lang.org/issues/show/3052

Author: Chris Schlaeger
Status: Open, Priority: Normal
Category: lib, Target version: 1.9.x
ruby -v: ruby 1.9.2dev (2010-01-27 trunk 26434) [x86_64-linux]

When I call DRb.start_service('druby://localhost:1234') and port 1234 is already in use, I silently end up with a broken DRb service. start_service should detect that the port is already in use and raise an exception.

I've attached a small test case. Starting it once works fine. But keeping it running and starting it again from another shell should fail. It does not.


----------------------------------------
http://redmine.ruby-lang.org