Author: markt
Date: Mon Apr 25 18:18:32 2016
New Revision: 1740874
URL: http://svn.apache.org/viewvc?rev=1740874&view=rev
Log:
Revert r1740841. This isn't fixing the root cause.
Modified:
tomcat/tc8.0.x/trunk/java/org/apache/coyote/http11/upgrade/Nio2ServletInputStream.java
Modified:
tomcat/tc8.0.x/trunk/java/org/apache/coyote/http11/upgrade/Nio2ServletInputStream.java
URL:
http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/coyote/http11/upgrade/Nio2ServletInputStream.java?rev=1740874&r1=1740873&r2=1740874&view=diff
==============================================================================
---
tomcat/tc8.0.x/trunk/java/org/apache/coyote/http11/upgrade/Nio2ServletInputStream.java
(original)
+++
tomcat/tc8.0.x/trunk/java/org/apache/coyote/http11/upgrade/Nio2ServletInputStream.java
Mon Apr 25 18:18:32 2016
@@ -42,7 +42,6 @@ public class Nio2ServletInputStream exte
private boolean flipped = false;
private volatile boolean readPending = false;
private volatile boolean interest = true;
- private volatile boolean swallowEOF = false;
public Nio2ServletInputStream(SocketWrapper<Nio2Channel> wrapper,
AbstractEndpoint<Nio2Channel> endpoint0) {
this.endpoint = endpoint0;
@@ -53,7 +52,7 @@ public class Nio2ServletInputStream exte
public void completed(Integer nBytes, SocketWrapper<Nio2Channel>
attachment) {
boolean notify = false;
synchronized (completionHandler) {
- if (!swallowEOF && nBytes.intValue() < 0) {
+ if (nBytes.intValue() < 0) {
failed(new EOFException(), attachment);
} else {
readPending = false;
@@ -181,11 +180,6 @@ public class Nio2ServletInputStream exte
@Override
protected void doClose() throws IOException {
- // Closing the channel will trigger an EOF. This is expected so set the
- // flag to swallow it.
- if (readPending) {
- swallowEOF = true;
- }
channel.close();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]