comparison 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
comparison
equal deleted inserted replaced
1037:3c4c7cc7904f 1038:b71ad168fe34
172 { 172 {
173 // If the client is expecting 100 CONTINUE, then send it now. 173 // If the client is expecting 100 CONTINUE, then send it now.
174 if (_expect100Continue) 174 if (_expect100Continue)
175 { 175 {
176 // is content missing? 176 // is content missing?
177 if (_parser._header.length()<2) 177 if (_parser._header.remaining()<2)
178 { 178 {
179 if (_generator.isCommitted()) 179 if (_generator.isCommitted())
180 throw new IllegalStateException("Committed before 100 Continues"); 180 throw new IllegalStateException("Committed before 100 Continues");
181 181
182 _generator.send1xx(HttpStatus.CONTINUE_100); 182 _generator.send1xx(HttpStatus.CONTINUE_100);
769 } 769 }
770 else if (_generator.isBufferFull()) 770 else if (_generator.isBufferFull())
771 commitResponse(HttpGenerator.MORE); 771 commitResponse(HttpGenerator.MORE);
772 772
773 // Block until our buffer is free 773 // Block until our buffer is free
774 while (buffer.length() > 0 && _generator.isOpen()) 774 while (buffer.remaining() > 0 && _generator.isOpen())
775 { 775 {
776 _generator.blockForOutput(getMaxIdleTime()); 776 _generator.blockForOutput(getMaxIdleTime());
777 } 777 }
778 } 778 }
779 779