Fix for endless receive loop #4

merged 1 commit into from Jan 9, 2012

2 participants


When heavily loading the FastCGI server resulting in connections hanging up gracefully on the remote end, the Sockets.Socket behavior is to immediately return 0 from calls to Receive. This behavior was not handled, resulting in CPU usage spinning out of control and the FastCGI server becoming partly or completely unavailable, depending on the number of threads and threads affected by the problem.

This fix is a patch that solves this problem under a few assumptions as documented in the commit. A more fit exception is probably required.

@gonzalop gonzalop merged commit a641207 into mono:master Jan 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment