diff options
author | Simone Bordet | 2015-11-04 17:18:25 +0000 |
---|---|---|
committer | Simone Bordet | 2015-11-04 17:18:25 +0000 |
commit | ea04e59637ff2b46ecda43ebc53ce3dc034ba2d3 (patch) | |
tree | cfc67b385fd6410c801e72aa6e74de2ea27666b1 /jetty-io | |
parent | a1e2d4e8c3b32397d128424d42915d07744073ab (diff) | |
download | org.eclipse.jetty.project-ea04e59637ff2b46ecda43ebc53ce3dc034ba2d3.tar.gz org.eclipse.jetty.project-ea04e59637ff2b46ecda43ebc53ce3dc034ba2d3.tar.xz org.eclipse.jetty.project-ea04e59637ff2b46ecda43ebc53ce3dc034ba2d3.zip |
Fixed typo in logging statement.
Diffstat (limited to 'jetty-io')
-rw-r--r-- | jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java index 19abf0b19f..0130eca9da 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java @@ -45,7 +45,7 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint return AbstractEndPoint.this.needsFill(); } }; - + private final WriteFlusher _writeFlusher = new WriteFlusher(this) { @Override @@ -79,7 +79,7 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint { return _remote; } - + @Override public Connection getConnection() { @@ -109,7 +109,7 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint _writeFlusher.onClose(); _fillInterest.onClose(); } - + @Override public void close() { @@ -150,17 +150,17 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint boolean input_shutdown=isInputShutdown(); boolean fillFailed = _fillInterest.onFail(timeout); boolean writeFailed = _writeFlusher.onFail(timeout); - + // If the endpoint is half closed and there was no fill/write handling, then close here. - // This handles the situation where the connection has completed its close handling + // This handles the situation where the connection has completed its close handling // and the endpoint is half closed, but the other party does not complete the close. // This perhaps should not check for half closed, however the servlet spec case allows - // for a dispatched servlet or suspended request to extend beyond the connections idle - // time. So if this test would always close an idle endpoint that is not handled, then + // for a dispatched servlet or suspended request to extend beyond the connections idle + // time. So if this test would always close an idle endpoint that is not handled, then // we would need a mode to ignore timeouts for some HTTP states if (isOpen() && (output_shutdown || input_shutdown) && !(fillFailed || writeFailed)) close(); - else + else LOG.debug("Ignored idle endpoint {}",this); } @@ -170,13 +170,13 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint Connection old_connection = getConnection(); if (LOG.isDebugEnabled()) - LOG.debug("{} upgradeing from {} to {}", this, old_connection, newConnection); - + LOG.debug("{} upgrading from {} to {}", this, old_connection, newConnection); + ByteBuffer prefilled = (old_connection instanceof Connection.UpgradeFrom) ?((Connection.UpgradeFrom)old_connection).onUpgradeFrom():null; old_connection.onClose(); old_connection.getEndPoint().setConnection(newConnection); - + if (newConnection instanceof Connection.UpgradeTo) ((Connection.UpgradeTo)newConnection).onUpgradeTo(prefilled); else if (BufferUtil.hasContent(prefilled)) @@ -184,7 +184,7 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint newConnection.onOpen(); } - + @Override public String toString() { |