Skip to content

Commit

Permalink
Pull up keep-alive
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1654316 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Jan 23, 2015
1 parent a91bd9f commit 7d929d3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions java/org/apache/tomcat/util/net/AprEndpoint.java
Expand Up @@ -1929,8 +1929,6 @@ public static class SendfileData extends SendfileDataBase {
public long socket; public long socket;
// Position // Position
public long pos; public long pos;
// KeepAlive flag
public boolean keepAlive;
} }




Expand Down
2 changes: 0 additions & 2 deletions java/org/apache/tomcat/util/net/Nio2Endpoint.java
Expand Up @@ -1621,8 +1621,6 @@ public static class SendfileData extends SendfileDataBase {
public FileChannel fchannel; public FileChannel fchannel;
public long pos; public long pos;
public long length; public long length;
// KeepAlive flag
public boolean keepAlive;
// Internal use only // Internal use only
private Nio2SocketWrapper socket; private Nio2SocketWrapper socket;
private ByteBuffer buffer; private ByteBuffer buffer;
Expand Down
2 changes: 0 additions & 2 deletions java/org/apache/tomcat/util/net/NioEndpoint.java
Expand Up @@ -1761,7 +1761,5 @@ public static class SendfileData extends SendfileDataBase {
public volatile FileChannel fchannel; public volatile FileChannel fchannel;
public volatile long pos; public volatile long pos;
public volatile long length; public volatile long length;
// KeepAlive flag
public volatile boolean keepAlive;
} }
} }
7 changes: 7 additions & 0 deletions java/org/apache/tomcat/util/net/SendfileDataBase.java
Expand Up @@ -18,4 +18,11 @@


public abstract class SendfileDataBase { public abstract class SendfileDataBase {


/**
* Is the current request being processed on a keep-alive connection? This
* determines if the socket is closed once the send file completes or if
* processing continues with the next request on the connection (or waiting
* for that next request to arrive).
*/
public boolean keepAlive;
} }

0 comments on commit 7d929d3

Please sign in to comment.