When using the cassini lib dll, the server stops responding after a certain amount of time.
Looking at the code we can see that CassiniServer.cs sets the timeout to 60 seconds:
_server = new Server(port, virtualPath, applicationPath, ipAddress,hostname, 60000);
In Server.cs, in DecrementRequestCount, if the timeout is > 0 and request count < 1, a timer is started:
private void DecrementRequestCount()
if (_requestCount < 1)
_requestCount = 0;
if (_timeoutInterval > 0)
_timer = new Timer(TimeOut, null, _timeoutInterval, Timeout.Infinite);
However this timer is never stopped when a new request comes in, the timer reference is merely set to null:
private void IncrementRequestCount()
_timer = null;
This means when request count hits 0 the server stops responding, whether or not a new request comes in.