Server starting failed (ruby 1.9.3p194, rails 3.2.3 )

Server starting failed (ruby 1.9.3p194, rails 3.2.3 )

On Sunday, April 29, 2012 7:51:38 AM UTC-3, User wrote:

Server starting failed (ruby 1.9.3p194, rails 3.2.3 )


Please read the FAQ section that was mentioned with the release of
RubyInstaller 1.9.3-p194:

Will copy it here in case you don’t see it:

= Q: What means by “increased file descriptors”, how that affects me?

A: By default Ruby 1.9 was limited to 64 sockets when using select()
select() is a mechanism to set and clear the state of sockets that are
for data. In other OS you have different ‘pooling’ mechanisms.

Most of the web servers that run on Ruby, specially the evented ones
on select().

Without this change these frameworks/libraries wouldn’t be able to use
than 64 open sockets, which affects any of us attempting to use Ruby on
for more than testing things out.

Please note that this is a workaround to a bigger issue: select() and
associated functions are not the recommended or optimally way to
sockets on Windows.

If you encounter a problem running a pre-compiled evented library
build, please ask the library author to recompile with


This will affect Thin because it uses EventMachine. Until that issue
sorted out, you need to:

A) build locally EventMachine:

gem install eventmachine --pre --platform=ruby

B) Request the gem authors to release a gem with the flag updated

We are discussing the technical challenges to solve that at Ruby level:

Luis L.