M
Martin Boese
I need to disconnect explicitly from a druby client.
My code is like:
DRb.start_service
@drb = DRbObject.new(nil, 'druby://localhost:7777')
@drb.dosomething(param1, param2, param3)
...(here I'd like to disconnect!!)...
Background:
I am using druby to communicate between a Rails application running on
lighttpd/FreeBSD6 and a server-script running on the same box with different
user rights.
I noticed that the longer I run the webserver the more sockets stay open,
"sockstat | grep ruby" gives me hundreds of:
I assume that every time I run the druby client on the website a connection
remains open. They get all cleared if I restart lighttpd.
Thanks.
martin
My code is like:
DRb.start_service
@drb = DRbObject.new(nil, 'druby://localhost:7777')
@drb.dosomething(param1, param2, param3)
...(here I'd like to disconnect!!)...
Background:
I am using druby to communicate between a Rails application running on
lighttpd/FreeBSD6 and a server-script running on the same box with different
user rights.
I noticed that the longer I run the webserver the more sockets stay open,
"sockstat | grep ruby" gives me hundreds of:
www ruby18 26179 10 tcp4 *:51359 *:*
www ruby18 26179 11 tcp4 *:57690 *:*
www ruby18 26179 12 tcp4 *:53473 *:*
I assume that every time I run the druby client on the website a connection
remains open. They get all cleared if I restart lighttpd.
Thanks.
martin