}
int buffersize = HttpConnectionParams.getSocketBufferSize(params);
this.socket = socket;
this.datatransmitter = new SocketHttpDataTransmitter(socket, buffersize, params);
this.datareceiver = new SocketHttpDataReceiver(socket, buffersize, params);
this.charbuffer = new CharArrayBuffer(256);
this.requestfactory = new DefaultHttpRequestFactory();
this.contentLenStrategy = new StrictContentLengthStrategy();
this.maxHeaderCount = params.getIntParameter(HttpConnectionParams.MAX_HEADER_COUNT, -1);
this.maxLineLen = params.getIntParameter(HttpConnectionParams.MAX_LINE_LENGTH, -1);