comparison src/org/eclipse/jetty/http/HttpParser.java @ 1071:b4ba8a4d5a16

remove JBuffer.space()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 10 Nov 2016 02:13:28 -0700
parents 9d357b9e4bcb
children ebb0f1343ef6
comparison
equal deleted inserted replaced
1070:a44fc6b53757 1071:b4ba8a4d5a16
994 { 994 {
995 compact(); 995 compact();
996 } 996 }
997 997
998 // Are we full? 998 // Are we full?
999 if (_buffer.space() == 0) 999 if (_buffer.limit() == _buffer.capacity())
1000 { 1000 {
1001 LOG.warn("HttpParser Full for {} ",_endp); 1001 LOG.warn("HttpParser Full for {} ",_endp);
1002 clear(); 1002 clear();
1003 throw new HttpException(HttpStatus.REQUEST_ENTITY_TOO_LARGE_413, "Request Entity Too Large: "+(_buffer==_body?"body":"head")); 1003 throw new HttpException(HttpStatus.REQUEST_ENTITY_TOO_LARGE_413, "Request Entity Too Large: "+(_buffer==_body?"body":"head"));
1004 } 1004 }