M
Mike Pence
Hello all,
Great to be here. Ruby is re-igniting my love of software development.
I am running this code:
require 'gserver'
#
# A server that returns the time in seconds since 1970.
#
class TimeServer < GServer
def initialize(port=3D10001, *args)
super(port, *args)
end
def serve(io)
io.puts(Time.now.to_i)
end
end
# Run the server with logging enabled (it's a separate thread).
server =3D TimeServer.new
server.audit =3D true # Turn logging on.
server.start
And getting this output:
[Wed Sep 28 12:40:24 2005] TimeServer 127.0.0.1:10001 start
[Wed Sep 28 12:40:28 2005] TimeServer 127.0.0.1:10001 stop
Why is the server stopping?
Thanks,
Mike Pence
Great to be here. Ruby is re-igniting my love of software development.
I am running this code:
require 'gserver'
#
# A server that returns the time in seconds since 1970.
#
class TimeServer < GServer
def initialize(port=3D10001, *args)
super(port, *args)
end
def serve(io)
io.puts(Time.now.to_i)
end
end
# Run the server with logging enabled (it's a separate thread).
server =3D TimeServer.new
server.audit =3D true # Turn logging on.
server.start
And getting this output:
[Wed Sep 28 12:40:24 2005] TimeServer 127.0.0.1:10001 start
[Wed Sep 28 12:40:28 2005] TimeServer 127.0.0.1:10001 stop
Why is the server stopping?
Thanks,
Mike Pence