io.undertow.UndertowOptions#REQUEST_PARSE_TIMEOUT
| Modifier and Type | Field and Description |
|---|---|
| private final Runnable | |
| private final ConnectedChannel | |
| private volatile long | |
| private static final int | |
| private volatile XnioExecutor. | |
| private volatile boolean | |
| private final long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | ParseTimeoutUpdater(ConnectedChannel
Channel which will be closed in case of timeout. channel, long Timeout value. Negative value will indicate that this updated is disabled. requestParseTimeout, long requestIdleTimeout)Creates new instance of ParseTimeoutSourceConduit. |
| public | ParseTimeoutUpdater(ConnectedChannel
Channel which will be closed in case of timeout. channel, long Timeout value. Negative value will indicate that this updated is disabled. requestParseTimeout, long requestIdleTimeout, Runnable closeTask)Creates new instance of ParseTimeoutSourceConduit. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public void | closed(ServerConnection connection)
Implements io.
|
| public void | |
| public void | |
| private void | |
| public void | |
| public void |
| closeTask | back to summary |
|---|---|
| private final Runnable closeTask | |
| connection | back to summary |
|---|---|
| private final ConnectedChannel connection | |
| expireTime | back to summary |
|---|---|
| private volatile long expireTime | |
| FUZZ_FACTOR | back to summary |
|---|---|
| private static final int FUZZ_FACTOR | |
| handle | back to summary |
|---|---|
| private volatile XnioExecutor. | |
| parsing | back to summary |
|---|---|
| private volatile boolean parsing | |
| requestIdleTimeout | back to summary |
|---|---|
| private final long requestIdleTimeout | |
| requestParseTimeout | back to summary |
|---|---|
| private final long requestParseTimeout | |
| ParseTimeoutUpdater | back to summary |
|---|---|
| public ParseTimeoutUpdater(ConnectedChannel channel, long requestParseTimeout, long requestIdleTimeout) Creates new instance of ParseTimeoutSourceConduit.
| |
| ParseTimeoutUpdater | back to summary |
|---|---|
| public ParseTimeoutUpdater(ConnectedChannel channel, long requestParseTimeout, long requestIdleTimeout, Runnable closeTask) Creates new instance of ParseTimeoutSourceConduit.
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in | |
| closed | back to summary |
|---|---|
| public void closed(ServerConnection connection) Implements io.
| |
| connectionIdle | back to summary |
|---|---|
| public void connectionIdle() Called when the connection goes idle | |
| failedParse | back to summary |
|---|---|
| public void failedParse() Called when a request is received, however it is not parsed in a single read() call. This starts a timer, and if the request is not parsed within this time then the connection is closed. | |
| handleSchedule | back to summary |
|---|---|
| private void handleSchedule(long timeout) | |
| requestStarted | back to summary |
|---|---|
| public void requestStarted() Cancels timeout countdown. Should be called after parsing is complete (to avoid closing connection during other activities). | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |