@@ -100,12 +100,7 @@ private int processWrite(int state, final ByteBuffer userData) throws IOExceptio
100100 }
101101 ClientRequest request = this .request ;
102102 ByteBuffer buffer = pooledBuffer .getBuffer ();
103- Iterator <HttpString > nameIterator = this .nameIterator ;
104- Iterator <String > valueIterator = this .valueIterator ;
105- int charIndex = this .charIndex ;
106103 int length ;
107- String string = this .string ;
108- HttpString headerName = this .headerName ;
109104 int res ;
110105 // BUFFER IS FLIPPED COMING IN
111106 if (state != STATE_START && buffer .hasRemaining ()) {
@@ -189,11 +184,6 @@ private int processWrite(int state, final ByteBuffer userData) throws IOExceptio
189184 do {
190185 res = next .write (buffer );
191186 if (res == 0 ) {
192- this .string = string ;
193- this .headerName = headerName ;
194- this .charIndex = charIndex ;
195- this .valueIterator = valueIterator ;
196- this .nameIterator = nameIterator ;
197187 log .trace ("Continuation" );
198188 return STATE_HDR_NAME ;
199189 }
@@ -210,11 +200,6 @@ private int processWrite(int state, final ByteBuffer userData) throws IOExceptio
210200 res = next .write (buffer );
211201 if (res == 0 ) {
212202 log .trace ("Continuation" );
213- this .string = string ;
214- this .headerName = headerName ;
215- this .charIndex = charIndex ;
216- this .valueIterator = valueIterator ;
217- this .nameIterator = nameIterator ;
218203 return STATE_HDR_D ;
219204 }
220205 } while (buffer .hasRemaining ());
@@ -230,11 +215,6 @@ private int processWrite(int state, final ByteBuffer userData) throws IOExceptio
230215 res = next .write (buffer );
231216 if (res == 0 ) {
232217 log .trace ("Continuation" );
233- this .string = string ;
234- this .headerName = headerName ;
235- this .charIndex = charIndex ;
236- this .valueIterator = valueIterator ;
237- this .nameIterator = nameIterator ;
238218 return STATE_HDR_DS ;
239219 }
240220 } while (buffer .hasRemaining ());
@@ -260,11 +240,6 @@ private int processWrite(int state, final ByteBuffer userData) throws IOExceptio
260240 do {
261241 res = next .write (buffer );
262242 if (res == 0 ) {
263- this .string = string ;
264- this .headerName = headerName ;
265- this .charIndex = charIndex ;
266- this .valueIterator = valueIterator ;
267- this .nameIterator = nameIterator ;
268243 log .trace ("Continuation" );
269244 return STATE_HDR_VAL ;
270245 }
@@ -467,7 +442,6 @@ private int processWrite(int state, final ByteBuffer userData) throws IOExceptio
467442 if (res == 0 ) {
468443 log .trace ("Continuation" );
469444 this .charIndex = i ;
470- this .string = string ;
471445 this .state = STATE_URL ;
472446 return STATE_URL ;
473447 }
0 commit comments