Author: remy.maucherat(a)jboss.com
Date: 2014-06-03 07:55:52 -0400 (Tue, 03 Jun 2014)
New Revision: 2440
Modified:
branches/7.4.x/src/main/java/org/apache/coyote/http11/InternalNioInputBuffer.java
Log:
Follow up on r2435: should do an initial notification when data is available.
Modified:
branches/7.4.x/src/main/java/org/apache/coyote/http11/InternalNioInputBuffer.java
===================================================================
---
branches/7.4.x/src/main/java/org/apache/coyote/http11/InternalNioInputBuffer.java 2014-06-03
11:36:03 UTC (rev 2439)
+++
branches/7.4.x/src/main/java/org/apache/coyote/http11/InternalNioInputBuffer.java 2014-06-03
11:55:52 UTC (rev 2440)
@@ -62,7 +62,7 @@
/**
* Non blocking mode.
*/
- protected boolean available = false;
+ protected boolean available = true;
/**
* NIO end point.
@@ -196,7 +196,7 @@
super.recycle();
bbuf.clear();
channel = null;
- available = false;
+ available = true;
}
/*
@@ -206,7 +206,7 @@
*/
public boolean nextRequest() {
boolean result = super.nextRequest();
- available = false;
+ available = true;
if (nonBlocking) {
semaphore.release();
}
Show replies by date