Branch: Tag:

1998-03-28

1998-03-28 21:55:32 by David Hedbor <david@hedbor.org>

More debug added. A timeout for keep-alive requests also added (there
were no timeout at all for non-pipelined requests earlier).

Rev: server/protocols/http.pike:1.78

1:   // This is a roxen module. Copyright © 1996 - 1998, Idonex AB.    - constant cvs_version = "$Id: http.pike,v 1.77 1998/03/28 01:25:01 neotron Exp $"; + constant cvs_version = "$Id: http.pike,v 1.78 1998/03/28 21:55:32 neotron Exp $";   // HTTP protocol module.   #include <config.h>   private inherit "roxenlib";
813:    return;   }    + void timer(int start) + { +  MARK_FD("HTTP really handled, piping "+not_query +" ("+(time(1) - start)")"); +  call_out(timer, 30, start); + } +    void handle_request( )   {    mixed *err;
984:    } else    file->len = 1; // Keep those alive, please...    if (pipe) { -  MARK_FD("HTTP really handled, piping"); +  MARK_FD("HTTP really handled, piping "+not_query); +  call_out(timer, 30, time(1)); // Update FD with time...    pipe->set_done_callback( do_log );    pipe->output(my_fd);    } else {
1129:    my_fd = f;    conf = c;    do_not_disconnect=-1; -  if(strlen(le)) got_data(0,le); +  if(strlen(le)) +  // More to handle already. +  got_data(0,le); +  else +  // If no pipelined data is available, call out... +  call_out(do_timeout, 15); +     if(!my_fd)    {    if(do_not_disconnect == -1)