server.gets may be nil if eof, handle that
fuu