From: Donncha O Caoimh (donncha.ocaoimh at domain tradesignals.com)
Date: Mon 29 May 2000 - 13:43:21 IST
My script writes stuff all the time to the client. I did notice that
MySQL wasn't being sent any queries after the clients disconnected which
leads me to believe that the loop isn't actually being executed. The
Apache/PHP4 process is getting stuck somewhere..
I mailed the php4-devel list as well but nothing back from them yet,
I'll go with a long timeout instead for the time being.
Donncha.
Wesley Darlington wrote:
>
[snip]
> > Unfortunetly, when I kill the client side wget processes it doesn't seem
> > to close the connection on the server side! Further testing creates more
> > Apache processes and the server eventually stops responding to new
> > connections..
> > Does anyone know if this is normal behaviour when doing infinite loops
> > in server side scripting?
> > (or else it's a PHP4 bug..)
>
> AFAIK, the server will stop when the server process tries to
> write to the socket and discovers that it's gone. Y'know the
> sort of thing ... and there it was, gone! It'll keep merrily
> running if it's doing something that doesn't involve output.
>
> Does your infinite loop write anything? If it is writing
> something at every stage in the loop, then you may have a
> different problem... :-)
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:17 GMT