Mod_cache : user or backend server terminates connection before finish, delete temporary file

3 views
Skip to first unread message

LM

unread,
Jul 14, 2008, 10:40:18 AM7/14/08
to mod_cache
Dear all.

Please help me.

Download with IE or FF, mod_cache worked.

But i use IDM or Flashget, mod_cache didn't cache, and output error:
user or backend server terminates connection before finish, delete
temporary file
my partern:

cache.refresh-pattern = (

"\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv|mid|
swf)$" => "0 fetchall-for-range-request ignore-reload override-expire
ignore-cache-control-header"
)

LM

unread,
Jul 14, 2008, 2:53:52 PM7/14/08
to mod_cache
Somebody helps me?
please

Hongyu

unread,
Jul 14, 2008, 8:25:18 PM7/14/08
to mod_...@googlegroups.com
IDM or flashget terminate the connection before it received all response of http request, so modcache
can't save the partial response as cache, which violated http protocol

Regards

LM

unread,
Jul 15, 2008, 3:38:38 AM7/15/08
to mod_cache
I have patched mod_cache.c. And this problem is solved.

On Jul 15, 7:25 am, Hongyu <shellc...@gmail.com> wrote:
> IDM or flashget terminate the connection before it received all response of
> http request, so modcache
> can't save the partial response as cache, which violated http protocol
>
> Regards
>

Hongyu

unread,
Jul 15, 2008, 4:50:27 AM7/15/08
to mod_...@googlegroups.com
make sure to check writed length=response.content-length

LM

unread,
Jul 15, 2008, 1:55:14 PM7/15/08
to mod_cache
But with IDM, mod_cache couldn't work.

How to patch for IDM?



On Jul 15, 3:50 pm, Hongyu <shellc...@gmail.com> wrote:
> make sure to check writed length=response.content-length
>

LM

unread,
Jul 15, 2008, 2:02:09 PM7/15/08
to mod_cache
Dear Hongyu,

I am very stupid, with IDM , we use "fetchall-for-range-request".

Hongyu

unread,
Jul 15, 2008, 8:39:10 PM7/15/08
to mod_...@googlegroups.com
There has no chance to patch for IDM because IDM terminated the connection before it receive all content of http response.
Reply all
Reply to author
Forward
0 new messages