search for: set_comm_inactivity_timeout

Displaying 2 results from an estimated 2 matches for "set_comm_inactivity_timeout".

2007 Sep 14
3
epoll appears to break
The following program is a minor variant on the sample given in the README with eventmachine-0.8.1. I am running under CentOS 4.5 (kernel 2.6.9-55.0.2.plus.c4) with a ruby-1.8.5 RPM from the CentOS testing repository. When I run it, I find that set_comm_inactivity_timeout doesn''t do anything. That is, if I client opens a connection, it stays open indefinitely. However, if I comment out the line "EventMachine::epoll" then the problem goes away, and timeouts start working. Is this a known issue with epoll? The ''EPOLL'' readme file...
2009 Mar 15
2
How can I add TimeoutHandler to EvenmentMachine
Hi, list Now I am coding for one non-blocking httpclient based on event-machine, and it seems the client will hang for 50 seconds if the destination is unreachable. My questions are 1. How can I short the timeout? I had tried conn.set_comm_inactivity_timeout(5), but it didn''t work 2. How can I add TimeoutHandler to the connection? Thanks! /Jack -- Jack Tang Software Engineer at Vobile Email: himars at gmail.com http://www.linkedin.com/in/jacktang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http:/...