Skip to content

Commit

Permalink
Add a currently unused proprty for the async timeout.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1638746 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Nov 12, 2014
1 parent 58b59cd commit 6feed11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions java/org/apache/tomcat/util/net/SocketWrapperBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public abstract class SocketWrapperBase<E> {

private volatile long lastAccess = System.currentTimeMillis();
private volatile long lastAsyncStart = 0;
private volatile long asyncTimeout = -1;
private long timeout = -1;
private boolean error = false;
private volatile int keepAliveLeft = 100;
Expand Down Expand Up @@ -112,6 +113,12 @@ public void setAsync(boolean async) {
public long getLastAsyncStart() {
return lastAsyncStart;
}
public void setAsyncTimeout(long timeout) {
asyncTimeout = timeout;
}
public long getAsyncTimeout() {
return asyncTimeout;
}
public boolean isUpgraded() { return upgraded; }
public void setUpgraded(boolean upgraded) { this.upgraded = upgraded; }
public boolean isSecure() { return secure; }
Expand Down Expand Up @@ -186,6 +193,7 @@ public void reset(E socket, long timeout) {
keepAliveLeft = 100;
lastAccess = System.currentTimeMillis();
lastAsyncStart = 0;
asyncTimeout = -1;
localAddr = null;
localName = null;
localPort = -1;
Expand Down

0 comments on commit 6feed11

Please sign in to comment.