No luck with teensyMUD on Cygwin either. 09-04-27 14:54:34 [FATAL] (Acceptor) Caught Errno::EINVAL: Invalid argument ./lib/network/acceptor.rb:38:in `setsockopt'
Line 38 and 39 in ./lib/network/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'))
Line 38 and 39 in ./lib/network/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'))
Still getting the same error, could be a Cygwin thing though.
Line 38 and 39 in ./lib/network/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'))
Still getting the same error, could be a Cygwin thing though.
Works for me. Are you sure you commented out line 38 like it is above? The original problem is a change in the ruby sockets interface that occurred sometime after version 1.8.4. The above should work on all versions of ruby up to and including version 1.8.7
09-04-27 14:54:34 [FATAL] (Acceptor) Caught Errno::EINVAL: Invalid argument
./lib/network/acceptor.rb:38:in `setsockopt'
Line 38 and 39 in ./lib/network/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'))