From: Jos Backus Date: 2002-02-09T16:24:55+09:00 Subject: Re: iowa segfault Hello Avi, I think I have found the cause of the mod_iowa problem I have been seeing (a runaway httpd chewing up CPU after performing the ``make test''). The code is not checking the return value of recv() properly. The patch: --- mod_iowa.c.orig Fri Feb 8 23:22:47 2002 +++ mod_iowa.c Fri Feb 8 23:23:03 2002 @@ -93,7 +93,7 @@ } shutdown(s, 1); - while(len = recv(s, buf, HUGE_STRING_LEN, 0)) + while((len = recv(s, buf, HUGE_STRING_LEN, 0)) != -1) { ap_rwrite(buf, len, r); } -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;