WeBrick

B

benjohn

I'm trying to start up webrick on my NT box.

irb(main):003:0> s = WEBrick::HTTPServer.new:)Port => 4567)
Errno::EBADF: Bad file descriptor
from c:/ruby/lib/ruby/1.8/webrick/log.rb:40:in `write'
from c:/ruby/lib/ruby/1.8/webrick/log.rb:40:in `<<'
from c:/ruby/lib/ruby/1.8/webrick/log.rb:40:in `log'
from c:/ruby/lib/ruby/1.8/webrick/log.rb:85:in `log'
from c:/ruby/lib/ruby/1.8/webrick/log.rb:51:in `info'
from c:/ruby/lib/ruby/1.8/webrick/server.rb:55:in `initialize'
from c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'
from (irb):3:in `new'
from (irb):3
from :0
irb(main):004:0>

I've tried a few other port numbers picked at random, but no joy. I also
get a similar problem if I just try to open up a TCP socket, so this
seems related:

irb(main):006:0> s = Socket::TCPServer.new(45673)
Errno::EBADF: Bad file descriptor
from (irb):6:in `write'
from (irb):6
from :0
irb(main):007:0>

Could anyone suggest what the problem is?

Thanks,
Benjohn
 
B

benjohn

Oddly, none of this happens when I run directly from irb (I've not tried
a stand alone script). I've only encountered it when I'm using the fxri
interface, so I'm just using the vanila comand line.

Strange.

Thanks,
Benjohn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

open4 2
PHP in instant rails 1
[Rails] Javascript / DHTML menu 1
gmail access 1
python rounding problem. 15
modifying iterator value. 2
Help with syntax warnings 6
May i customize basic operator (such as 1==3)? 5

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top