Projects STRLCPY LoggerPlusPlus Commits cfdee7c8
🤬
  • Revert to comment response matching method.

  • Loading...
  • Corey committed 1 year ago
    cfdee7c8
    1 parent bf7fc26c
  • ■ ■ ■ ■ ■ ■
    src/main/java/com/nccgroup/loggerplusplus/logview/processor/LogProcessor.java
    skipped 85 lines
    86 86   final LogEntry logEntry = new LogEntry(toolFlag, arrivalTime, httpMessage);
    87 87   
    88 88   //Set the entry's identifier to the HTTP request's hashcode.
    89  - // For non-proxy messages, this doesn't change when we receive the response
    90 89   logEntry.setIdentifier(System.identityHashCode(httpMessage.getRequest()));
     90 + LogProcessorHelper.addIdentifierInComment(logEntry.getIdentifier(), httpMessage);
    91 91   //Submit a new task to process the entry
    92 92   submitNewEntryProcessingRunnable(logEntry);
    93 93   } else {
    skipped 5 lines
    99 99   return; //Process proxy responses using processProxyMessage
    100 100   } else {
    101 101   //Otherwise, we have the final HTTP response, and can use the request hashcode to match it up with the log entry.
    102  - Integer identifier = System.identityHashCode(httpMessage.getRequest());
     102 + Integer identifier = LogProcessorHelper.extractAndRemoveIdentifierFromRequestResponseComment(httpMessage);
    103 103   updateRequestWithResponse(identifier, arrivalTime, httpMessage);
    104 104   }
    105 105   }
    skipped 245 lines
Please wait...
Page is in error, reload to recover