Article delegate-en/3969 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3968@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: takeover issue?
09 May 2008 01:42:35 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A3968@delegate-en.ML_> on 05/09/08(01:10:31) I wrote:
 | |05/07 17:46:26.66 [9974] 2345+8: HTTP/1.1 200 Content-{Type:text/html Encoding:[/chunked] Leng:0} Server:Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7e-p1 FrontPage/5.0.2.2510
 | |05/07 17:46:32.13 [9974] 2345+8: detach respBuff: huge data
 | |05/07 17:46:32.27 [9974] 2345+8: discard cache: leng=1049280/0 /var/spool/delegate-nobody/cache/http/krugmebeli.ru/index.php?catalog=1032
 |
 |>>> 3 minutes <<<
 |
 | |05/07 18:49:42.23 [9974] 2345+8: ## premature client close: flush_body (cant_getpeername)
 | |05/07 18:49:42.23 [9974] 2345+8: ClientEOF: flush_body
 | |05/07 18:49:42.23 [9974] 2345+8: HTTP transmitted: 275head+000000000/fbody=>1049280txt+0bin->734250566/0, 807026i/47843o/0f/3795.6
 |
 |In the above silent period, maybe DeleGate/9.2.1 is receiving the data
 |into a temporary file to do gunzip/gzip the data, without relaying it
 |to the client.  DeleGate tries detecting the disconnection from the
 |client dureing the buffering, but it might fail in some reason.
 |
 |I recommend you to use recent version of DeleGate in which the above
 |buffering for gzip is replaced with the pipelined gzip/gzip threads.

I noticed that you are using CFI filter with FTOCL:

 |05/07 04:03:26.62 [5201] 0+0: ext[184] FTOCL=/proxy/relay/cfi/8080.cfi

Maybe your CFI is conditional on Content-Type or so, therefore your log
does not indicate the invocation of FTOCL CFI.
But when DeleGate is running with FTOCL of CFI, It is certain that DeleGate
stops relaying response message to the client until DeleGate completes
receiving the response data.  (I'v fixed it to break receiving with FTOCL
of non-CFI in DeleGate/8.7.7).

The problem can be fixed as the enclosed patch.
I uploaded the patched version as DeleGate 9.8.2-pre30 to the FTP server.

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** dist/src/delegate9.8.2-pre29/src/http.c	Tue May  6 16:37:37 2008
--- ./src/http.c	Fri May  9 09:57:44 2008
***************
*** 5381,5387 ****
--- 5381,5395 ----
  		}
  	    }
  	    Now = Time();
+ 
+ 	/*
  	    if( !ClientEOF && RX_tcp == RX_respBuff && Next < Now ){
+ 	*/
+ 	    if( !ClientEOF )
+ 	    if( RX_tcp == RX_respBuff /* 8.7.7 buffered locally */
+ 	     || (Conn->xf_filtersCFI & XF_FTOCL) /*9.8.2 buffered in the CFI*/
+ 	    )
+ 	    if( Next < Now ){
  		if( ClientSock < 0 && Conn->from_myself ){
  			/* No client originally */
  		}else

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V