Skip to content

Commit

Permalink
Revert 1833871 - it was incomplete
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1833872 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Jun 19, 2018
1 parent f34a8b1 commit 332877b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion java/org/apache/tomcat/util/net/Nio2Endpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ public void close() throws IOException {

@Override
public boolean isClosed() {
return closed || !getSocket().isOpen();
return !getSocket().isOpen();
}


Expand Down
4 changes: 1 addition & 3 deletions java/org/apache/tomcat/util/net/NioEndpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,6 @@ public static class NioSocketWrapper extends SocketWrapperBase<NioChannel> {
private volatile SendfileData sendfileData = null;
private volatile long lastRead = System.currentTimeMillis();
private volatile long lastWrite = lastRead;
private volatile boolean closed = false;

public NioSocketWrapper(NioChannel channel, NioEndpoint endpoint) {
super(channel, endpoint);
Expand Down Expand Up @@ -1133,14 +1132,13 @@ public int read(boolean block, ByteBuffer to) throws IOException {

@Override
public void close() throws IOException {
closed = true;
getSocket().close();
}


@Override
public boolean isClosed() {
return closed || !getSocket().isOpen();
return !getSocket().isOpen();
}


Expand Down

0 comments on commit 332877b

Please sign in to comment.