Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1038:b71ad168fe34
rename Buffer.length() to remaining()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 22:16:11 -0600 |
parents | b87f97f6418a |
children | a8c92b0a08ed |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java Thu Nov 03 21:54:34 2016 -0600 +++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java Thu Nov 03 22:16:11 2016 -0600 @@ -174,7 +174,7 @@ if (_expect100Continue) { // is content missing? - if (_parser._header.length()<2) + if (_parser._header.remaining()<2) { if (_generator.isCommitted()) throw new IllegalStateException("Committed before 100 Continues"); @@ -771,7 +771,7 @@ commitResponse(HttpGenerator.MORE); // Block until our buffer is free - while (buffer.length() > 0 && _generator.isOpen()) + while (buffer.remaining() > 0 && _generator.isOpen()) { _generator.blockForOutput(getMaxIdleTime()); }