diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-12-10 18:55:09 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-10 18:55:09 +0600 |
commit | 4c978e0512acc7793a88ea9fa0388e847d9faff5 (patch) | |
tree | 724e60332ba97a900fcadcdf47363da7254b09d4 /src/libutil/libev_helper.h | |
parent | 3e033c74c80913707c45451892cfcf9b5ed98c83 (diff) | |
parent | 2b2b2762cc48f6be7a26c185bd95e7c77cdc46fa (diff) | |
download | rspamd-4c978e0512acc7793a88ea9fa0388e847d9faff5.tar.gz rspamd-4c978e0512acc7793a88ea9fa0388e847d9faff5.zip |
Merge pull request #5251 from rspamd/vstakhov-cumulative-tcp-timeout
[Fix] Use cumulative timeout when dealing with TCP connections
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 |