diff options
author | Justin Clark-Casey (justincc) | 2012-09-21 00:09:17 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-09-21 00:09:17 +0100 |
commit | e29d563557bbe3a5a8f3aaf883ca92770a586e10 (patch) | |
tree | 67dcb36166c891819b127b244d170f69ccc1cc6f /OpenSim/Framework/WebUtil.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-e29d563557bbe3a5a8f3aaf883ca92770a586e10.zip opensim-SC-e29d563557bbe3a5a8f3aaf883ca92770a586e10.tar.gz opensim-SC-e29d563557bbe3a5a8f3aaf883ca92770a586e10.tar.bz2 opensim-SC-e29d563557bbe3a5a8f3aaf883ca92770a586e10.tar.xz |
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.
Diffstat (limited to 'OpenSim/Framework/WebUtil.cs')
-rw-r--r-- | OpenSim/Framework/WebUtil.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index 64d61f1..e095402 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs | |||
@@ -64,7 +64,7 @@ namespace OpenSim.Framework | |||
64 | /// <summary> | 64 | /// <summary> |
65 | /// Request number for diagnostic purposes. | 65 | /// Request number for diagnostic purposes. |
66 | /// </summary> | 66 | /// </summary> |
67 | public static int RequestNumber = 0; | 67 | public static int RequestNumber { get; internal set; } |
68 | 68 | ||
69 | /// <summary> | 69 | /// <summary> |
70 | /// this is the header field used to communicate the local request id | 70 | /// this is the header field used to communicate the local request id |