Skip to content
Snippets Groups Projects
Commit 53aa7d08 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Collect statistics of the read and write queues.

parent ec263dda
No related branches found
No related tags found
No related merge requests found
2003-08-01 Per Cederqvist <ceder@ceder.dyndns.org> 2003-08-01 Per Cederqvist <ceder@ceder.dyndns.org>
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
STAT_RECV_QUEUE.
* src/server/stats.c (name): Handle STAT_SEND_QUEUE and
STAT_RECV_QUEUE.
* 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
STAT_RECV_QUEUE.
* src/server/connections.c (read_from_connection): Update
STAT_RECV_QUEUE.
* src/server/testsuite/lyskomd.0/01.exp: Test send-queue-bytes and
recv-queue-bytes.
* 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" Don't be too efficient... (Back out part of the "ignore clients"
patch.) patch.)
* src/server/connections.c (read_from_connection): Revert part of * src/server/connections.c (read_from_connection): Revert part of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment