diff src/org/eclipse/jetty/http/HttpGenerator.java @ 1034:563458c4dc93

remove HttpGenerator.reset()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 21:02:59 -0600
parents 3718afd99988
children b87f97f6418a
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpGenerator.java	Thu Nov 03 04:00:25 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpGenerator.java	Thu Nov 03 21:02:59 2016 -0600
@@ -106,9 +106,7 @@
 		super(buffers,io);
 	}
 
-	@Override
-	public void reset()
-	{
+	public void shutdown() {
 		if (_persistent!=null && !_persistent && _endp!=null && !_endp.isOutputShutdown())
 		{
 			try
@@ -120,20 +118,6 @@
 				LOG.trace("",e);
 			}
 		}
-		super.reset();
-		if (_buffer!=null)
-			_buffer.clear();
-		if (_header!=null)
-			_header.clear();
-		if (_content!=null)
-			_content=null;
-		_bypass = false;
-		_needCRLF = false;
-		_needEOC = false;
-		_bufferChunked = false;
-		_method=null;
-		_uri=null;
-		_noContent=false;
 	}
 
 	/* ------------------------------------------------------------ */
@@ -330,7 +314,7 @@
 		{
 			if (isRequest())
 			{
-				_persistent=true;
+				_persistent = true;
 
 				if (_version == HttpVersions.HTTP_0_9_ORDINAL)
 				{
@@ -366,7 +350,7 @@
 				else
 				{
 					if (_persistent==null)
-						_persistent= (_version > HttpVersions.HTTP_1_0_ORDINAL);
+						_persistent = (_version > HttpVersions.HTTP_1_0_ORDINAL);
 
 					// add response line
 					Status status = _status<__status.length?__status[_status]:null;
@@ -493,7 +477,7 @@
 												case HttpHeaderValues.CLOSE_ORDINAL:
 													close=true;
 													if (isResponse())
-														_persistent=false;
+														_persistent = false;
 													keep_alive=false;
 													if (!_persistent && isResponse() && _contentLength == HttpTokens.UNKNOWN_CONTENT)
 														_contentLength = HttpTokens.EOF_CONTENT;