Commit 53aa7d08 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Collect statistics of the read and write queues.

parent ec263dda
2003-08-01 Per Cederqvist <>
More fixes to the test of stalled clients.
* src/server/testsuite/get-time-often.c (main): Actually retry
after a EAGAIN, EWOULDBLOCK or EINTR result from the final write.
Retry if it succeeds as well -- the server may just be slow
closing the socket.
Collect statistics of the read and write queues.
* doc/Protocol-A.texi (Measured Properties): Document
send-queue-bytes and recv-queue-bytes.
* src/server/stats.h (enum stat_type): Added STAT_SEND_QUEUE and
* src/server/stats.c (name): Handle STAT_SEND_QUEUE and
* src/server/ramkomd.c (write_queue_change_callback): New static
function. Update STAT_SEND_QUEUE.
(server_init): Register write_queue_change_callback with isc.
* src/server/internal-connections.c (kill_client): Update
* src/server/connections.c (read_from_connection): Update
* src/server/testsuite/lyskomd.0/01.exp: Test send-queue-bytes and
* src/server/testsuite/lyskomd.0/03.exp: Ditto.
* src/server/testsuite/lyskomd.0/38.exp: Ditto.
Bug fix.
* src/server/connections.c (toploop): Cancel the timer for
check_kill_flag if needed during shutdown.
Don't be too efficient... (Back out part of the "ignore clients"
* src/server/connections.c (read_from_connection): Revert part of
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment