comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1033:4ada7a8c128a

remove HttpParser._buffers
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 04:00:25 -0600
parents 2ea54e6117c3
children 563458c4dc93
comparison
equal deleted inserted replaced
1032:eca26899c4bc 1033:4ada7a8c128a
123 _server = connector.server; 123 _server = connector.server;
124 init(); 124 init();
125 } 125 }
126 126
127 void initParser() { 127 void initParser() {
128 _parser = new HttpParser(_connector.getRequestBuffers(), _endp, new RequestHandler()); 128 Buffers buffers = _connector.getRequestBuffers();
129 _parser = new HttpParser(buffers.getHeader(), buffers.getBuffer(), _endp, new RequestHandler());
129 } 130 }
130 131
131 private void init() { 132 private void init() {
132 initParser(); 133 initParser();
133 _request = new Request(this); 134 _request = new Request(this);
165 { 166 {
166 // If the client is expecting 100 CONTINUE, then send it now. 167 // If the client is expecting 100 CONTINUE, then send it now.
167 if (_expect100Continue) 168 if (_expect100Continue)
168 { 169 {
169 // is content missing? 170 // is content missing?
170 if (_parser.getHeaderBuffer()==null || _parser.getHeaderBuffer().length()<2) 171 if (_parser._header.length()<2)
171 { 172 {
172 if (_generator.isCommitted()) 173 if (_generator.isCommitted())
173 throw new IllegalStateException("Committed before 100 Continues"); 174 throw new IllegalStateException("Committed before 100 Continues");
174 175
175 _generator.send1xx(HttpStatus.CONTINUE_100); 176 _generator.send1xx(HttpStatus.CONTINUE_100);