Hello Sam, > Anyway I'm using mod_scgi with apache2 to forward requests to my C > program. I want my C program to accept the requests and let them hang > until my program is ready to reply. > > But it seems that if the apache-scgi connection hangs for about 5 > seconds or more, Apache terminates it and sends the visitor a 500 > Internal Server Error message. > > Is there a way to edit the config files to stop this behavior? Yes, there is a SCGIServerTimeout parameter, you could set it to a large value. (from a quick look at the sources it doesn't look like 0 would mean disabling the timeout). Frederic