Commit 0985835d authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Call a callback function if a client becomes stale.

parent 475f4108
2003-08-01 Per Cederqvist <ceder@ceder.dyndns.org>
Call a callback function if a client becomes stale.
* src/isc.h (isc_stale_output_cb): New typedef.
(isc_cfg_stale_timeout): New function.
(isc_set_read_callback): New argument: stale_output_cb.
* src/isc_session.c (isc_create): Initialize
stale_output_cb_registered and stale_output_cb.
(stale_cb): New static function.
(isc_set_read_callback): New argument: stale_output_cb.
(isc_cancel_stale_output_callback): New static function.
(isc_check_read_callback): New argument: any_written. All callers
updated. Handle a timer callback used to detect if a client has
stalled.
* src/isc_output.c (isc_oflush): Inform isc_check_read_callback()
if anything was written.
* src/isc_master.c (isc_initialize): Initialize stale_timeout.
(isc_cfg_stale_timeout): New function.
* src/intern.h (struct isc_scb_internal): Added stale_output_cb,
stale_output_cb_registered and stale_output_tv.
(struct isc_session_cfg): Added stale_timeout.
(isc_check_read_callback): New argument: any_written. All callers
updated.
* configure.in: Removed -Waggregate-return, since we use
timeval_ctor() from libmisc.
2003-07-31 Per Cederqvist <ceder@ceder.dyndns.org>
Move struct isc_mcb and large parts of struct isc_scb from isc.h
......
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