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

[DeleGate-En] Re: CFI with windows : disable MOUNT builtin
08 Jun 2006 15:00:42 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project

Xavier,

In message <_A3291@delegate-en.ML_> on 06/08/06(21:51:24)
you "Xavier Cheney" <p2mgabdyi-mxhgu4ys633w.ml@delegate.org> wrote:
 |  Still an other problem with Windows XP ... which not appears clearly under 
 |linux.
 |  When I use CFI filter, and if I give an URL forbidden (not in PERMIT or in 
 |REJECT), the message given is the default DeleGate message and not the 
 |MOUNTed one.
 |  For example, I haven't my default message in http://www.delegate.org with 
 |those parameters :
 |    PERMIT="*:*google*:*"
 |    MOUNT="/-/builtin/mssgs/403-forbidden.dhtml 
 |http://localhost/forbidden.html"
 |    FTOCL=filter.cfi

Hmm..  FTOCL is applied even when getting MOUNTed builtin-data.
It might be able to be escaped with a conditional FTOCL in CMAP
but I'm not sure.
On Windows, the shutdown for TCP for FTOCL causes another problem.
It might be able to be escaped with SOCKOPT=noshut.

These problems can be escaped with the following patch.
I uploaded the patched version as dg9_2_2-pre9y.zip.

Cheers,
Yutaka
--
  D G   Yutaka Sato <pfqcabdyi-mxhgu4ys633w.ml@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


diff -cr delegate9.2.2-pre9/src/http.c ./src/http.c
*** delegate9.2.2-pre9/src/http.c	Wed Jun  7 11:08:36 2006
--- ./src/http.c	Thu Jun  8 23:38:25 2006
***************
*** 5288,5293 ****
--- 5288,5298 ----
  {	int toC;
  	FILE *ntc;
  
+ 	if( Conn->from_myself ){
+ 		sv1log("#### insertFTOCL_X: d'ont insert for internal\n");
+ 		return tc;
+ 	}
+ 
  	toC = ToC;
  	setConnX(Conn,FromC,ToC,FromS,ToS);
  	if( RESP_DoZIP ){
***************
*** 7885,7890 ****
--- 7890,7900 ----
  void WaitShutdown(Connection *Conn,FILE *tc,int force)
  {	int x,xpid,nproc,xproc;
  
+ 	if( Conn->from_myself ){
+ 		sv1log("#### WaitShutdown: d'ont shutdown for internal\n");
+ 		return;
+ 	}
+ 
  	nproc = nbits(Conn->xf_filters & ~XF_CLIENT)
  	      + nbits(Conn->xf_clprocs)
  	      + nbits(Conn->fi_builtin);

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