Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of jjore (6662)

Tuesday August 04, 2009
07:17 PM

Life... draining... out..., ruby-1.8 to blame

[ #39405 ]


the will to live...



useful stack traces...

I wish Ruby were as useful as Perl. I wish the following had the arguments like I'd get from any perl program using Carp. I also wish this code had just used perror(3) so it'd report the ordinary message "Address already in use" instead of making up its own message "no acceptor."

>> Thin web server (v1.2.2 codename I Find Your Lack of Sauce Disturbing)
>> Maximum connections set to 1024
>> Listening on, CTRL+C to stop
Failed to start the service
no acceptor
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:56 5:in `start_tcp_server'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmac hine.rb:565:in `start_server'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/backends/tcp_ser ver.rb:16:in `connect'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/backends/base.rb:49:i n `start'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242 :in `call'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine.rb:242: in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.8/lib/eventmachine. rb:242:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/backends/base.rb:57:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/server.rb:156:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.2/lib/thin/controllers/controller. rb:80:in `start'
./basic.rb:51:in `initialize'
./basic.rb:51:in `new'

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.