private bool CheckClientConnected(HttpWorkerRequest wr)
 {
     if ((DateTime.UtcNow - wr.GetStartTime()) > this._clientConnectedTime)
     {
         return wr.IsClientConnected();
     }
     return true;
 }
 private bool CheckClientConnected(HttpWorkerRequest wr)
 {
     if ((DateTime.UtcNow - wr.GetStartTime()) > this._clientConnectedTime)
     {
         return(wr.IsClientConnected());
     }
     return(true);
 }
Пример #3
0
 // This method will check to see if the client is still connected.
 // The checks are only done if it's an in-proc Isapi request AND the request has been waiting
 // more than the configured clientConenctedCheck time.
 private bool CheckClientConnected(HttpWorkerRequest wr) {
     if (DateTime.UtcNow - wr.GetStartTime() > _clientConnectedTime)
         return wr.IsClientConnected();
     else
         return true;
 }
Пример #4
0
 private static void CalculateWaitTimeAndUpdatePerfCounter(HttpWorkerRequest wr)
 {
   long num = DateTime.UtcNow.Subtract(wr.GetStartTime()).Ticks / 10000L;
   if (num > (long) int.MaxValue)
     num = (long) int.MaxValue;
   PerfCounters.SetGlobalCounter(GlobalPerfCounter.REQUEST_WAIT_TIME, (int) num);
   PerfCounters.SetCounter(AppPerfCounter.APP_REQUEST_WAIT_TIME, (int) num);
 }