Roxen.git
/
server
/
plugins
/
protocols
/
http.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/plugins/protocols/http.pike:1:
// This is a ChiliMoon protocol module. // Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2001, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
383
2002/10/
22
00
:
12
:
52
nilsson Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
384
2002/10/
23
20
:
05
:
56
nilsson Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR // HTTP protocol module. #include <config.h> #define TIMER_PREFIX "http:" #include <timers.h> inherit RequestID;
Roxen.git/server/plugins/protocols/http.pike:1736:
conf->hsent += strlen(head_string); } } MARK_FD("HTTP handled"); if( (method!="HEAD") && (file->error!=304) ) // No data for these two... { #ifdef RAM_CACHE if( (misc->cacheable > 0) && (file->data || file->file) &&
-
prot != "HTTP/0.9" )
+
(
prot != "HTTP/0.9"
)
&& !misc->no_proto_cache
)
{ if( file->len>0 && // known length. ((file->len + strlen( head_string )) < conf->datacache->max_file_size) && misc->cachekey ) { string data = ""; if( file->file ) data += file->file->read(); if( file->data ) data += file->data; MY_TRACE_ENTER (sprintf ("Storing in ram cache, entry: %O", raw_url), 0);