Commit 0f240a33 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added a callback function that reports changes to the size of the

output queue.
parent 0e3f33d7
2003-08-01 Per Cederqvist <ceder@ceder.dyndns.org> 2003-08-01 Per Cederqvist <ceder@ceder.dyndns.org>
Added a callback function that reports changes to the size of the
output queue.
* src/isc.h (isc_write_queue_change_cb): New typedef.
(isc_initialize): New argument: the write_change_cb.
* src/intern.h (struct isc_mcb): Added write_change_cb.
(isc_killqueue): Now returns an int: the number of payload bytes
in the killed queue.
* src/isc_session.c (isc_destroy): Inform the write change
callback function of changes in the pending output queue size.
* src/isc_queue.c (isc_killqueue): Now returns an int: the number
of payload bytes in the killed queue.
* src/isc_output.c (isc_flush): Inform the write change callback
function of changes in the pending output queue size.
(isc_oflush): Ditto.
* src/isc_master.c (isc_initialize): New argument:
write_change_cb.
Don't fail to unregister the stale timeout during shutdown. Don't fail to unregister the stale timeout during shutdown.
* src/isc_session.c (isc_set_read_callback): Call * src/isc_session.c (isc_set_read_callback): Call
isc_cancel_stale_output_callback(). Removed redundant checks. isc_cancel_stale_output_callback(). Removed redundant checks.
......
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