Skip to content

Commit

Permalink
Merge pull request #172 from nccgroup/bugfix-166
Browse files Browse the repository at this point in the history
Revert to comment response matching method.
  • Loading branch information
CoreyD97 authored Jan 24, 2023
2 parents d6d761b + 0513e3c commit aad95e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public void processHttpMessage(final int toolFlag, final boolean isRequestOnly,
final LogEntry logEntry = new LogEntry(toolFlag, arrivalTime, httpMessage);

//Set the entry's identifier to the HTTP request's hashcode.
// For non-proxy messages, this doesn't change when we receive the response
logEntry.setIdentifier(System.identityHashCode(httpMessage.getRequest()));
LogProcessorHelper.addIdentifierInComment(logEntry.getIdentifier(), httpMessage);
//Submit a new task to process the entry
submitNewEntryProcessingRunnable(logEntry);
} else {
Expand All @@ -99,7 +99,7 @@ public void processHttpMessage(final int toolFlag, final boolean isRequestOnly,
return; //Process proxy responses using processProxyMessage
} else {
//Otherwise, we have the final HTTP response, and can use the request hashcode to match it up with the log entry.
Integer identifier = System.identityHashCode(httpMessage.getRequest());
Integer identifier = LogProcessorHelper.extractAndRemoveIdentifierFromRequestResponseComment(httpMessage);
updateRequestWithResponse(identifier, arrivalTime, httpMessage);
}
}
Expand Down

0 comments on commit aad95e8

Please sign in to comment.