timestamp http requests
parent
7098091616
commit
48892ad8a7
|
@ -192,6 +192,11 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
}
|
}
|
||||||
private string m_userAgent;
|
private string m_userAgent;
|
||||||
|
|
||||||
|
public double ArrivalTS
|
||||||
|
{
|
||||||
|
get { return m_request.ArrivalTS;}
|
||||||
|
}
|
||||||
|
|
||||||
internal IHttpRequest IHttpRequest
|
internal IHttpRequest IHttpRequest
|
||||||
{
|
{
|
||||||
get { return m_request; }
|
get { return m_request; }
|
||||||
|
|
|
@ -275,6 +275,10 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double RequestTS
|
||||||
|
{
|
||||||
|
get {return _httpResponse.RequestTS; }
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// HTTP status description.
|
/// HTTP status description.
|
||||||
|
|
|
@ -197,6 +197,7 @@ namespace OSHttpServer
|
||||||
m_currentRequest.UriPath = e.UriPath;
|
m_currentRequest.UriPath = e.UriPath;
|
||||||
m_currentRequest.AddHeader("remote_addr", LocalIPEndPoint.Address.ToString());
|
m_currentRequest.AddHeader("remote_addr", LocalIPEndPoint.Address.ToString());
|
||||||
m_currentRequest.AddHeader("remote_port", LocalIPEndPoint.Port.ToString());
|
m_currentRequest.AddHeader("remote_port", LocalIPEndPoint.Port.ToString());
|
||||||
|
m_currentRequest.ArrivalTS = ContextTimeoutManager.GetTimeStamp();
|
||||||
|
|
||||||
FirstRequestLineReceived = true;
|
FirstRequestLineReceived = true;
|
||||||
TriggerKeepalive = false;
|
TriggerKeepalive = false;
|
||||||
|
|
|
@ -204,6 +204,7 @@ namespace OSHttpServer
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public RequestCookies Cookies { get; private set; }
|
public RequestCookies Cookies { get; private set; }
|
||||||
|
|
||||||
|
public double ArrivalTS { get; set;}
|
||||||
///<summary>
|
///<summary>
|
||||||
///Creates a new object that is a copy of the current instance.
|
///Creates a new object that is a copy of the current instance.
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|
|
@ -26,6 +26,7 @@ namespace OSHttpServer
|
||||||
public byte[] RawBuffer { get; set; }
|
public byte[] RawBuffer { get; set; }
|
||||||
public int RawBufferStart { get; set; }
|
public int RawBufferStart { get; set; }
|
||||||
public int RawBufferLen { get; set; }
|
public int RawBufferLen { get; set; }
|
||||||
|
public double RequestTS { get; private set; }
|
||||||
|
|
||||||
internal byte[] m_headerBytes = null;
|
internal byte[] m_headerBytes = null;
|
||||||
|
|
||||||
|
@ -45,6 +46,7 @@ namespace OSHttpServer
|
||||||
m_context = request.Context;
|
m_context = request.Context;
|
||||||
m_Connetion = request.Connection;
|
m_Connetion = request.Connection;
|
||||||
requestID = request.ID;
|
requestID = request.ID;
|
||||||
|
RequestTS = request.ArrivalTS;
|
||||||
RawBufferStart = -1;
|
RawBufferStart = -1;
|
||||||
RawBufferLen = -1;
|
RawBufferLen = -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,5 +138,6 @@ namespace OSHttpServer
|
||||||
|
|
||||||
IPEndPoint LocalIPEndPoint { get; }
|
IPEndPoint LocalIPEndPoint { get; }
|
||||||
IPEndPoint RemoteIPEndPoint { get; }
|
IPEndPoint RemoteIPEndPoint { get; }
|
||||||
|
double ArrivalTS { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -38,6 +38,7 @@ namespace OSHttpServer
|
||||||
int RawBufferStart { get; set; }
|
int RawBufferStart { get; set; }
|
||||||
int RawBufferLen { get; set; }
|
int RawBufferLen { get; set; }
|
||||||
uint requestID { get; }
|
uint requestID { get; }
|
||||||
|
double RequestTS { get;}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the version of the HTTP Response for applications where it's required
|
/// Defines the version of the HTTP Response for applications where it's required
|
||||||
|
|
|
@ -187,6 +187,7 @@ namespace OpenSim.Tests.Common
|
||||||
|
|
||||||
public Uri Url { get; set; }
|
public Uri Url { get; set; }
|
||||||
public string UriPath { get;}
|
public string UriPath { get;}
|
||||||
|
public double ArrivalTS { get; }
|
||||||
|
|
||||||
public string UserAgent
|
public string UserAgent
|
||||||
{
|
{
|
||||||
|
|
|
@ -117,6 +117,8 @@ namespace OpenSim.Tests.Common
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string StatusDescription { get; set; }
|
public string StatusDescription { get; set; }
|
||||||
|
|
||||||
|
public double RequestTS { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Add a header field and content to the response.
|
/// Add a header field and content to the response.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue