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.639
Rev: server/base_server/prototypes.pike:1.193
Rev: server/base_server/roxen.pike:1.964
Rev: server/protocols/http.pike:1.539

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.963 2009/06/10 12:55:30 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.964 2009/06/24 11:37:59 mast Exp $";      //! @appears roxen   //!
739: 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.   
5951:    "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"),