Subject: Getting this error when trying to start tmud
Author: spooktooth
Posted: 06/09/2010 02:49AM
Hello,
Could anyone help with this error I'm getting when trying to start tmud?
$ ruby ./tmud.rb
10-06-09 02:45:57 [ INFO] (YamlStore
?) Loading world...
10-06-09 02:45:57 [ INFO] (YamlStore
?) Database 'db/world.yaml' loaded...highest id = 1.
10-06-09 02:45:57 [ INFO] (Command) Loading commands...
10-06-09 02:45:57 [ INFO] (Command) Done.
10-06-09 02:45:57 [ INFO] (World) Starting Timer...
10-06-09 02:45:57 [ INFO] (World) World initialized.
10-06-09 02:45:57 [ INFO] (EventManager
?) Event manager starting...
10-06-09 02:45:57 [ INFO] (Engine) Booting server on port 4000
10-06-09 02:45:57 [FATAL] (Acceptor) Caught Errno::EINVAL: Invalid argument
./lib/network/acceptor.rb:39:in `setsockopt'
./lib/network/acceptor.rb:39:in `init'
./lib/network/reactor.rb:83:in `start'
./lib/engine/engine.rb:98:in `run'
./tmud.rb:87
10-06-09 02:45:57 [FATAL] (Engine) Engine failed in run
10-06-09 02:45:57 [FATAL] (Engine) Caught RuntimeError
?: Unable to start server
./lib/engine/engine.rb:98:in `run'
./tmud.rb:87
Thank you!
reply
Subject: Getting this error when trying to start tmud
Author: Tyche
Posted: 06/09/2010 02:44PM
spooktooth wrote:
>
> Hello,
>
> Could anyone help with this error I'm getting when trying to start tmud?
>
> $ ruby ./tmud.rb
> 10-06-09 02:45:57 [FATAL] (Acceptor) Caught Errno::EINVAL: Invalid argument
> ./lib/network/acceptor.rb:39:in `setsockopt'
> ./lib/network/acceptor.rb:39:in `init'
> ./lib/network/reactor.rb:83:in `start'
> ./lib/engine/engine.rb:98:in `run'
> ./tmud.rb:87
Lines 38 and 39 of acceptor.rb should be changed to:
# @sock.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR, true)
@sock.setsockopt(Socket::SOL_SOCKET, Socket::SO_LINGER, [0,0].pack('ii'))
reply