+ Fixed race condition: creating a new directory to archive
logs may have caused race condition, which ended up with
making the server unavailable. This issue has been fixed.
+ - shogi-server:
+ + Improved fault tolerance of the server.
2010-07-23 Daigo Moriwaki <daigo at debian dot org>
log_message("server started [Revision: #{ShogiServer::Revision}]")
server.start do |client|
+ begin
# client.sync = true # this is already set in WEBrick
client.setsockopt(Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, true)
# Keepalive time can be set by /proc/sys/net/ipv4/tcp_keepalive_time
ensure
$mutex.unlock
end
+ rescue Exception => ex
+ log_error("server.start: #{ex.class}: #{ex.message}\n\t#{ex.backtrace[0]}")
+ end
end
end