mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
timestamp http requests
This commit is contained in:
@@ -197,6 +197,7 @@ namespace OSHttpServer
|
||||
m_currentRequest.UriPath = e.UriPath;
|
||||
m_currentRequest.AddHeader("remote_addr", LocalIPEndPoint.Address.ToString());
|
||||
m_currentRequest.AddHeader("remote_port", LocalIPEndPoint.Port.ToString());
|
||||
m_currentRequest.ArrivalTS = ContextTimeoutManager.GetTimeStamp();
|
||||
|
||||
FirstRequestLineReceived = true;
|
||||
TriggerKeepalive = false;
|
||||
|
||||
@@ -204,6 +204,7 @@ namespace OSHttpServer
|
||||
/// </summary>
|
||||
public RequestCookies Cookies { get; private set; }
|
||||
|
||||
public double ArrivalTS { get; set;}
|
||||
///<summary>
|
||||
///Creates a new object that is a copy of the current instance.
|
||||
///</summary>
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace OSHttpServer
|
||||
public byte[] RawBuffer { get; set; }
|
||||
public int RawBufferStart { get; set; }
|
||||
public int RawBufferLen { get; set; }
|
||||
public double RequestTS { get; private set; }
|
||||
|
||||
internal byte[] m_headerBytes = null;
|
||||
|
||||
@@ -45,6 +46,7 @@ namespace OSHttpServer
|
||||
m_context = request.Context;
|
||||
m_Connetion = request.Connection;
|
||||
requestID = request.ID;
|
||||
RequestTS = request.ArrivalTS;
|
||||
RawBufferStart = -1;
|
||||
RawBufferLen = -1;
|
||||
}
|
||||
|
||||
@@ -138,5 +138,6 @@ namespace OSHttpServer
|
||||
|
||||
IPEndPoint LocalIPEndPoint { get; }
|
||||
IPEndPoint RemoteIPEndPoint { get; }
|
||||
double ArrivalTS { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -38,6 +38,7 @@ namespace OSHttpServer
|
||||
int RawBufferStart { get; set; }
|
||||
int RawBufferLen { get; set; }
|
||||
uint requestID { get; }
|
||||
double RequestTS { get;}
|
||||
|
||||
/// <summary>
|
||||
/// Defines the version of the HTTP Response for applications where it's required
|
||||
|
||||
Reference in New Issue
Block a user