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.
412
2004/
06
/
23
00
:
32
:
11
_cvs_stephen Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
413
2004/
07
/
01
17
:
34
:
39
_cvs_stephen Exp $";
//#define REQUEST_DEBUG //#define CONNECTION_DEBUG #define MAGIC_ERROR #define HTTPTIMEOUT 90 // HTTP protocol module. #include <config.h> #define TIMER_PREFIX "http:" #include <timers.h> #include <stat.h>
Roxen.git/server/plugins/protocols/http.pike:740:
static void cleanup_request_object() { if( conf ) conf->connection_drop( this ); } void end(int|void keepit) { CHECK_FD_SAFE_USE;
+
remove_call_out(do_timeout);
cleanup_request_object(); if(keepit && !file->raw && misc->connection != "close" && ((prot == "HTTP/1.1") || (misc->connection == "keep-alive")) && my_fd // Is this necessary now when this function no longer is called // from the close callback? /mast && !catch(my_fd->query_address()) )
Roxen.git/server/plugins/protocols/http.pike:2141:
{ if(f) { f->set_nonblocking(got_data, f->query_write_callback(), end); my_fd = f; CHECK_FD_SAFE_USE; MARK_FD("HTTP connection"); if( c ) port_obj = c; if( cc ) conf = cc; time = predef::time(1);
+
if(f->sslfile)
+
f->sslfile->set_close_callback(end);
call_out(do_timeout, HTTPTIMEOUT); } root_id = this; } void chain( object f, object c, string le ) { my_fd = f; f->set_nonblocking(0, f->query_write_callback(), end); port_obj = c;