Hi Jens, In message <_A4498@delegate-en.ML_> on 07/01/09(21:48:46) you Jens-Erik Hansen <puicqbdyi-qa4rnuevjja6.ml@delegate.org> wrote: |On 07/01/09 Yutaka Sato wrote: |> You are right. Selecting a FTOCL filter over HTTP with CFI's "X-Request" |> condition has been disabled since 9.2.3-pre4, in which conditional CFI |> for FTOCL was modified to reduce the overhead of CFI, reducing the |> needless invocations of CFI process when the condition seems not true, |> but without seeing "X-Request" condition... |> |> I added a workaround to fix it as the enclosed patch in 9.9.4-pre9. |> I'm planning to replace the implementation of CFI script interpreter |> from a process to a light weight thread thus it will be really fixed |> in near future. The following test works with 9.9.4-pre9 but not work with 9.9.4-pre8. [url.cfi] #!cfi X-Request-URL: /test/test.txt Header-Filter: -tee-n-v ----(1) without SSL [server] delegated -P9999 -fv SERVER=http FTOCL=url.cfi -vpq \ MOUNT="/* http://www.delegate.org/*" [client] delegated -Fdget http://localhost:9999/test/test.txt -h -o [server-log with 9.9.4-pre9] 07/03 03:13:31.13 [47073] 1+1: HTTP => (www.delegate.org:80) GET /test/test.txt HTTP/1.0^M --[47073] 1 D-S: GET /test/test.txt HTTP/1.1^M --[47073] 2 D-S: Connection: keep-alive^M 07/03 03:13:31.13 [47073] 1+1: #HT11 FORCE HTTP/1.1 or Connection:keep-alive --[47073] 3 D-S: Host: www.delegate.org^M --[47073] 4 D-S: User-Agent: DeleGate/9.9.4-pre8 (dget)^M --[47073] 5 D-S: Via: 1.1 - (DeleGate/9.9.4-pre9 on Darwin/9.7.0)^M --[47073] 6 D-S: ^M 07/03 03:13:31.34 [47074] 1+1: -- Fork(FTOCL): 47073 -> 47074 07/03 03:13:31.34 [47074] 1+1: #### execFilter[FTOCL] CFI 07/03 03:13:31.34 [47074] 1+1: ## CFI/http ## 07/03 03:13:31.34 [47073] 1+1: #HT11 SERVER ver[HTTP/1.1] conn[keep-alive, timeout=10, maxreq=20] 07/03 03:13:31.34 [47073] 1+1: HTTP/1.1 200 Content-{Type:text/plain Encoding:[/] Leng:40} KA:1/1 Server:DeleGate/9.9.4-pre9 07/03 03:13:31.34 [47073] 1+1: putMIMEmsg: Content-Length: 40 -> 40 (289 - 249) [] 07/03 03:13:31.34 [47073] 1+1: HTTP transmitted: 279head+40/40body=>0txt+0bin->40/40, 10i/2o/0f/0.0 ----- 1 Status-Line: HTTP/1.1 200 OK^M 2 DeleGate-Ver: 9.9.4-pre9 (delay=0)^M 3 X-Request-Original: GET /test/test.txt HTTP/1.0^M 4 X-Request: GET /test/test.txt HTTP/1.0^M ... [server-log with 9.9.4-pre8](without FTOCL invocation) 07/03 03:14:31.63 [47084] 1+1: HTTP => (www.delegate.org:80) GET /test/test.txt HTTP/1.0^M --[47084] 1 D-S: GET /test/test.txt HTTP/1.1^M --[47084] 2 D-S: Connection: keep-alive^M 07/03 03:14:31.63 [47084] 1+1: #HT11 FORCE HTTP/1.1 or Connection:keep-alive --[47084] 3 D-S: Host: www.delegate.org^M --[47084] 4 D-S: User-Agent: DeleGate/9.9.4-pre8 (dget)^M --[47084] 5 D-S: Via: 1.1 - (DeleGate/9.9.4-pre8 on Darwin/9.7.0)^M --[47084] 6 D-S: ^M 07/03 03:14:31.85 [47084] 1+1: #HT11 SERVER ver[HTTP/1.1] conn[keep-alive, timeout=10, maxreq=20] 07/03 03:14:31.85 [47084] 1+1: HTTP/1.1 200 Content-{Type:text/plain Encoding:[/] Leng:40} KA:1/1 Server:DeleGate/9.9.4-pre9 07/03 03:14:31.85 [47084] 1+1: putMIMEmsg: Content-Length: 40 -> 40 (289 - 249) [] 07/03 03:14:31.85 [47084] 1+1: HTTP transmitted: 279head+40/40body=>0txt+0bin->40/40, 10i/2o/0f/0.0 ----- 07/03 03:14:31.85 [47084] 1+1: #HT11 1 putServ(22/24/14) www.delegate.org:80 07/03 03:14:31.85 [47084] 1+1: disconnected [55] -@[127.0.0.1]localhost:59229 (0.236s)(0) ----(2) with SSL [server] delegated -P9999 -fv SERVER=http FTOCL=url.cfi -vpq \ MOUNT="/* http://www.delegate.org/*" \ STLS=fcl [client] delegated -Fdget http://localhost:9999/test/test.txt -h -o \ STLS=fsv The result is similer with (1). 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