com.glines.socketio.server.transport
Class ConnectionTimeoutPreventor
java.lang.Object
com.glines.socketio.server.transport.ConnectionTimeoutPreventor
public class ConnectionTimeoutPreventor
- extends Object
Jetty will close a connection even if there is continuous outbound data if the request's response
is not completed within maxIdleTime milliseconds. This is not appropriate for a persistent connection
SocketIO transport. IN order to prevent this, without disabling the maxIdleTime completely,
this class is used to obtain a @{link IdleCheck} instance that can be used to reset the idle timeout.
|
Method Summary |
static com.glines.socketio.server.transport.ConnectionTimeoutPreventor.IdleCheck |
newTimeoutPreventor()
This must be called within the context of an active HTTP request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionTimeoutPreventor
public ConnectionTimeoutPreventor()
newTimeoutPreventor
public static com.glines.socketio.server.transport.ConnectionTimeoutPreventor.IdleCheck newTimeoutPreventor()
- This must be called within the context of an active HTTP request.
Copyright © 2010-2011. All Rights Reserved.