Recover from most "Resource temporarily unavailable" errors writing the
request to the FastCGI application. These were common with large request
bodies on Mac OS X and intermittent on Solaris.
I couldn't reproduce the probem on FreeBSD or Linux. A couple of old reports
I found on the web were for Mac OS X.
Two different mechanisms are used to recover from EAGAIN:
First, try writing progressively smaller buffers. This was always
sufficient to solve the issue for OS X in my testing.
Last, try sleeping 250ms between attempts to write. This was always
required in my testing on Solaris, and 1 sleep was always enough.
PR: 48025
git-svn-id: https://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk@827834 13f79535-47bb-0310-9956-ffa450edef68
2 files changed