Add request number counting to incoming HTTP requests in the same way that this was already being done for outgoing HTTP requests.

This allows us to associate debug logging messages with the right request.
It also allows us to put a request number on 'long request' logging even if other debug logging is not enabled, which gives us some idea of whether every request is suffering this problem or only some.
This is a separate internal number not associated with any incoming number in the opensim-request-id header, this will be clarified when logging of this incoming request number is re-enabled.
This commit also adds port number to HTTP IN logging to allow us to distinguish between different request numbers on different ports.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-09-21 00:09:17 +01:00
parent 33aa6d172f
commit e29d563557
2 changed files with 42 additions and 19 deletions

View File

@@ -64,7 +64,7 @@ namespace OpenSim.Framework
/// <summary>
/// Request number for diagnostic purposes.
/// </summary>
public static int RequestNumber = 0;
public static int RequestNumber { get; internal set; }
/// <summary>
/// this is the header field used to communicate the local request id