private void reportCorruptStream(String label, ClientConnection cc) { StringBuilder builder = new StringBuilder(); TrieParserReader.debugAsUTF8(trieReader, builder, Math.min(trieReader.sourceLen,revisionMap.longestKnown()*2),false); logger.warn("{} looking for {} but found:\n{}\n\n",cc.id,label,builder); }
private void reportCorruptStream2(ClientConnection cc) { StringBuilder builder = new StringBuilder(); trieReader.sourcePos -= 10; TrieParserReader.debugAsUTF8(trieReader, builder, Math.min(trieReader.sourceLen,revisionMap.longestKnown()*2)); trieReader.sourcePos += 10; logger.warn("{} looking for header field but found:\n{}\nNOTE this starts 10 bytes before issue\n",cc.id,builder); }
Pipe.resetHead(outputPipe); int result = -1; if (-1==httpRevisionId && (tempLen < (config.revisionMap.longestKnown()+1) || (trieReader.sourceLen<0) )) { //added 1 for the space which must appear after TrieParserReader.debugAsUTF8(trieReader, builder, config.revisionMap.longestKnown()*4);
if (-1==verbId && (trieReader.sourceLen < (config.verbMap.longestKnown()+1) )) { //added 1 for the space which must appear after if (-1==pathId && trieReader.sourceLen < config.urlMap.longestKnown() ) {
if (reader.parseHasContentLength(reader) > customParser.longestKnown()) { System.err.println("at position "+reader.sourcePos); System.err.print("Unable to parse: '");
if (reader.parseHasContentLength(reader) > customParser.longestKnown()) { System.err.println("at position "+reader.sourcePos); System.err.print("Unable to parse: '");
if (reader.parseHasContentLength(reader) > customParser.longestKnown()) { System.err.println("at position "+reader.sourcePos); System.err.print("Unable to parse: '");
TrieParserReader.loadPositionMemo(trieReader, positionMemoData, memoIdx); if (-1==revisionId && (trieReader.sourceLen < (revisionMap.longestKnown()+1))) { foundWork = 0;//we must exit to give the other stages a chance to fix this issue maxIter = 0;