Re: can't get bytes_sent to work
Shugo Maeda <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi, At Tue, 9 Mar 2004 17:47:51 -0600, "Mark Wilmoth" <[email protected]> wrote: > Is there a trick to get Apache#request.bytes_sent to work? > > I have: > > Apache 2.0.47 > mod_ruby 1.0.7 > > > Here is an example of the code with the call at the end and it always > returns zero. Apache::Request do not send any data to the client by default until the script execution terminates. So Apache::Request#bytes_sent always returns zero. If you call Apache::Request#sync= like `Apache.request.sync = true', you'll get the value greater than zero. Shugo