while (true)
{
this.lineBuf.clear();
int j = paramSessionInputBuffer.readLine(this.lineBuf);
if ((j == -1) && (i == 0))
throw new NoHttpResponseException("The target server failed to respond");
localParserCursor = new ParserCursor(0, this.lineBuf.length());
if (this.lineParser.hasProtocolVersion(this.lineBuf, localParserCursor))
break;
if ((j == -1) || (reject(this.lineBuf, i)))
throw new ProtocolException("The server failed to respond with a valid HTTP response");