diff 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
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java	Thu Nov 10 01:23:37 2016 -0700
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Thu Nov 10 02:13:28 2016 -0700
@@ -996,7 +996,7 @@
 		}
 
 		// Are we full?
-		if (_buffer.space() == 0)
+		if (_buffer.limit() == _buffer.capacity())
 		{
 			LOG.warn("HttpParser Full for {} ",_endp);
 			clear();