Thanks for the reply, I have one doubt though ... I rigged up some UserAgent code and accessed a url which does internal_redirect() and goes to sleep(60) before returning. I found the response delayed by slightly more than 60 seconds.
So my problem all the time was that internal_redirect() does not really send the data until I return to apache. :-) is there any way to override this behaviour ? I know that I can send my data using send_fd(), but is there any other way of telling Apache to do the redirect ? regards srp > > From: Geoffrey Young <[EMAIL PROTECTED]> > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 > To: [EMAIL PROTECTED] > CC: [EMAIL PROTECTED] > Subject: Re: closing connection to client not working ! > References: <[EMAIL PROTECTED]> > [EMAIL PROTECTED] wrote: > > Hello, > > > > I have noticed a interesting thing. I am trying to close my connection to > > client but I am getting weird error. > > don't do that. > > > > > $r->internal_redirect("file"); > > shutdown($r->connection->fileno, 1) || die "$!"; > > you should always return OK after calling internal_redirect(), not > continue processing. >