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.404 2004/05/27 21:24:40 _cvs_stephen Exp $"; + constant cvs_version = "$Id: http.pike,v 1.405 2004/05/31 23:02:02 _cvs_stephen Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR      // HTTP protocol module.   #include <config.h>   #define TIMER_PREFIX "http:"   #include <timers.h> -  + #include <stat.h>      inherit RequestID;      #ifdef PROFILE   #define HRTIME() gethrtime()   int req_time = HRTIME();   #endif      #ifdef ID_OBJ_DEBUG   RoxenDebug.ObjectMarker __marker = RoxenDebug.ObjectMarker(this);
Roxen.git/server/plugins/protocols/http.pike:54:   private static array(string) cache;   private static int wanted_data, have_data;   private static String.Buffer data_buffer;      private static multiset(string) none_match;      int kept_alive;      #ifdef DEBUG   #define CHECK_FD_SAFE_USE do { \ -  if (this_thread() != roxen->backend_thread && \ +  if (this_thread() != core->backend_thread && \    (my_fd->query_read_callback() || my_fd->query_write_callback() || \    my_fd->query_close_callback() || \    !zero_type (find_call_out (do_timeout)))) \    error ("Got callbacks but not called from backend thread.\n"); \    } while (0)   #else   #define CHECK_FD_SAFE_USE do {} while (0)   #endif      #include <roxen.h>