Re: mod_proxy_html is filling error_log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 19 Apr 2007 12:11:27 +0200
Torsten Foertsch <torsten.foertsch@xxxxxxx> wrote:


> [Thu Apr 19 08:42:50 2007] [error] [client 192.168.254.25] Error in
> bucket read

Yes, that's a minor bug in 2.5.2. with Apache 2.2.  There's a fix
but I haven't got around to releasing it as a version.

> The development version of mod_proxy_html reads a bit different:
> 
>     if ( APR_BUCKET_IS_EOS(b) ) {
> ...
>     } else if ( apr_bucket_read(b, &buf, &bytes, APR_BLOCK_READ)
> 	      == APR_SUCCESS ) {
> ...
>     } else {
>       ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, f->r, "Error in bucket
> read") ; }

Erk!  So it does.  I thought that had been properly updated.

> b)
> c)

Either of those is OK.  Technically (b) is probably more correct.

> If b), what kind of handling is needed?

In principle, a flush bucket becomes an ap_fflush.  But that's fuzzy,
because there'll be a small amount of data buffered in the HTMLparser
which *can't* be flushed.  So it'll need careful testing.  And so long
as mod_proxy is feeding us HTML, it's not really important.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux