diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-09 12:49:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-09 12:49:19 +0000 |
commit | 2b2b2762cc48f6be7a26c185bd95e7c77cdc46fa (patch) | |
tree | 698339cccacd6ca84182975df8bd1231bb50595f /src/libutil/libev_helper.h | |
parent | eecb96c9eb45f6b6a8d66b4c3462c2d1a2371985 (diff) | |
download | rspamd-2b2b2762cc48f6be7a26c185bd95e7c77cdc46fa.tar.gz rspamd-2b2b2762cc48f6be7a26c185bd95e7c77cdc46fa.zip |
[Fix] Use cumulative timeout when dealing with TCP connectionsvstakhov-cumulative-tcp-timeout
Diffstat (limited to 'src/libutil/libev_helper.h')
-rw-r--r-- | src/libutil/libev_helper.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/libev_helper.h b/src/libutil/libev_helper.h index d68f17951..be9917891 100644 --- a/src/libutil/libev_helper.h +++ b/src/libutil/libev_helper.h @@ -65,9 +65,10 @@ void rspamd_ev_watcher_start(struct ev_loop *loop, * Stops watcher and clean it up * @param loop * @param ev + * @return {ev_tstamp} elapsed time */ -void rspamd_ev_watcher_stop(struct ev_loop *loop, - struct rspamd_io_ev *ev); +ev_tstamp rspamd_ev_watcher_stop(struct ev_loop *loop, + struct rspamd_io_ev *ev); /** * Convenience function to reschedule watcher with different events |