Roxen.git / server / plugins / protocols / http.pike

version» Context lines:

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.413 2004/07/01 17:34:39 _cvs_stephen Exp $"; + constant cvs_version = "$Id: http.pike,v 1.414 2004/07/06 09:06:56 _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:722:    misc->cacheable = t;    return ot;   }      void disconnect()   {    file = 0;    conf && conf->connection_drop( this );    if (my_fd) {    MARK_FD("HTTP my_fd in HTTP disconnected?"); -  my_fd->close(); +  catch(my_fd->close());    my_fd = 0;    }    MERGE_TIMERS(conf);    if(do_not_disconnect) return;    destruct();   }      static void cleanup_request_object()   {    if( conf )
Roxen.git/server/plugins/protocols/http.pike:744:   }      void end(int|void keepit)   {    CHECK_FD_SAFE_USE;       remove_call_out(do_timeout);    cleanup_request_object();       if(keepit -  && !file->raw +  && !(file && 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()) )    {    // Now.. Transfer control to a new http-object. Reset all variables etc..    this_program o = this_program(0, 0, 0);    o->remoteaddr = remoteaddr;