Skip to content

Commit

Permalink
Trivial
Browse files Browse the repository at this point in the history
 - rename
 - add a TODO

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1652006 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Jan 15, 2015
1 parent 4ef9947 commit 8a82c15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions java/org/apache/tomcat/util/net/Nio2Endpoint.java
Expand Up @@ -735,7 +735,7 @@ protected AtomicInteger initialValue() {
private boolean writeInterest = true; // Guarded by writeCompletionHandler
private boolean writeNotify = false;

private CompletionHandler<Integer, SocketWrapperBase<Nio2Channel>> awaitBytes
private CompletionHandler<Integer, SocketWrapperBase<Nio2Channel>> awaitBytesHandler
= new CompletionHandler<Integer, SocketWrapperBase<Nio2Channel>>() {

@Override
Expand Down Expand Up @@ -1300,7 +1300,9 @@ public void awaitBytes() {
if (readPending.tryAcquire()) {
getSocket().getBufHandler().configureReadBufferForWrite();
getSocket().read(getSocket().getBufHandler().getReadBuffer(),
getTimeout(), TimeUnit.MILLISECONDS, this, awaitBytes);
getTimeout(), TimeUnit.MILLISECONDS, this, awaitBytesHandler);
// TODO Figure out why moving this to the awaitBytesHandler
// causes test failures.
readPending.release();
}
}
Expand Down

0 comments on commit 8a82c15

Please sign in to comment.