Re: [xSocket-develop] about onIdleTimeout
Status: Inactive
Brought to you by:
grro
|
From: Gregor R. <gre...@go...> - 2007-11-07 06:30:47
|
Hello Jeter, the idle timeout should work on the client-side as well as on the server-side. By setting the idle timeout the connection will be closed by xSocket, if the idle time has bee reached. By implementing an ITimeoutHandler, you will be notified if the idle time out occurs. If your ITimeoutHandler returns true, the connection will be closed after performing the onIdleTimeout call back method. If your ITimeoutHandler returns false, the xSocket framework does nothing by returning from the onIdleTimeout method, means the connection stays open. See http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/tags/V1_2_1/src/test/java/org/xsocket/stream/NonBlockingConnectionClientHandlerTest.java?view=markup(testIdleTimeout() & testConnectionTimeout()) In the case of BlockingConnection a idle timeout causes throwing a exception within a pending read operation. Please add a bug report incl. test code if this not works for your program. Gregor 2007/11/7, Jeter Chen <je...@ai...>: > > Hi, is that onIdleTimeout only work on server or client can use > this function too?? But for the test myself, > client seems not work for this, thanks... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > |