Source/NFX.Wave/WaveServer.cs
/// <summary>
/// Override to set listener options such as TimeoutManager.MinSendBytesPerSecond before listener.Start()
/// </summary>
Override to set listener options such as TimeoutManager.MinSendBytesPerSecond before listener.Start()
Override to set listener options such as TimeoutManager . MinSendBytesPerSecond before listener . Start ()
protected virtual void BeforeListenerStart(HttpListener listener)
      {
        if (!OS.Computer.IsMono)
        {
          m_Listener.TimeoutManager.DrainEntityBody = TimeSpan.FromSeconds(m_DrainEntityBodyTimeoutSec);
          m_Listener.TimeoutManager.EntityBody = TimeSpan.FromSeconds(m_EntityBodyTimeoutSec);
          m_Listener.TimeoutManager.HeaderWait = TimeSpan.FromSeconds(m_HeaderWaitTimeoutSec);
          m_Listener.TimeoutManager.IdleConnection = TimeSpan.FromSeconds(m_IdleConnectionTimeoutSec);
          m_Listener.TimeoutManager.RequestQueue = TimeSpan.FromSeconds(m_RequestQueueTimeoutSec);
          m_Listener.TimeoutManager.MinSendBytesPerSecond = m_MinSendBytesPerSecond;
        }
      }
protected virtual void BeforeListenerStart ( HttpListener listener ) { if ( ! OS . Computer . IsMono ) { m_Listener . TimeoutManager . DrainEntityBody = TimeSpan . FromSeconds ( m_DrainEntityBodyTimeoutSec ) ; m_Listener . TimeoutManager . EntityBody = TimeSpan . FromSeconds ( m_EntityBodyTimeoutSec ) ; m_Listener . TimeoutManager . HeaderWait = TimeSpan . FromSeconds ( m_HeaderWaitTimeoutSec ) ; m_Listener . TimeoutManager . IdleConnection = TimeSpan . FromSeconds ( m_IdleConnectionTimeoutSec ) ; m_Listener . TimeoutManager . RequestQueue = TimeSpan . FromSeconds ( m_RequestQueueTimeoutSec ) ; m_Listener . TimeoutManager . MinSendBytesPerSecond = m_MinSendBytesPerSecond ; } }
Override to set listener options such as TimeoutManager.MinSendBytesPerSecond before listener.Start()
Override to set listener options such as TimeoutManager . MinSendBytesPerSecond before listener . Start ()
listener
HttpListener