I tried the nice “WEBSERVER EXTENSION FOR FEZ COBRA” for Fez Cobra from the Code section.
This example uses the HttpRequestHandler but it seems that this easts Sockets, too.
After 128 times refresh of a page the server stoops working
I have added (according to other forum threads):
context = listener.GetContext();
Earlier I tried this web server example (with sockets):
Her I added:
newSock.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.DontLinger, true);
to solve a similar problem with eating Sockets - this free sockets (do not linger)):
But, this I cannot do this with the HttpRequestHandler.
So, I think that both WebServer examples f lags from this Socket problem.
What to do?