Branch: Tag:

2009-06-24

2009-06-24 11:38:00 by Martin Stjernholm <mast@lysator.liu.se>

Added $queue-length log field.

Rev: server/base_server/configuration.pike:1.680
Rev: server/base_server/prototypes.pike:1.255
Rev: server/base_server/roxen.pike:1.1035
Rev: server/protocols/http.pike:1.611

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1034 2009/06/11 07:48:12 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1035 2009/06/24 11:38:00 mast Exp $";      //! @appears roxen   //!
915: Inside #if defined(THREADS)
   handle_queue->write(({f, args }));   }    + int handle_queue_length() + { +  return handle_queue->size(); + } +    int number_of_threads;   //! The number of handler threads to run.   
5884:    "bin-response": ({"%2c", "(int)(file->error || 200)", 1, "\"\\0\\0\"", 0}),    "length": ({"%d", "(int)file->len", 1, "\"0\"", 0}),    "bin-length": ({"%4c", "(int)file->len", 1, "\"\\0\\0\\0\\0\"", 0}), +  "queue-length": ({"%d", "(int) request_id->queue_length", +  1, "\"-\"", 0}),    "request-time": ({"%1.4f", ("(float)(gethrtime() - "    " request_id->hrtime) /"    "1000000.0"),