diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-20 18:49:04 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-20 18:49:04 +0300 |
commit | 606128de4cb33a2727d6609df46ecf0c72006a73 (patch) | |
tree | 8a12200c73b1ca0446b6f855beb46546ffbd8a81 /src/buffer.h | |
parent | bcece60fa1bfd4bbb09a64c058835fe3245e1d18 (diff) | |
download | rspamd-606128de4cb33a2727d6609df46ecf0c72006a73.tar.gz rspamd-606128de4cb33a2727d6609df46ecf0c72006a73.zip |
* Fix dispatcher timeouts handling
* Add wanna_die flag that can be used in dispatcher's callbacks
Diffstat (limited to 'src/buffer.h')
-rw-r--r-- | src/buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index 93c7818dd..4c9e5c905 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -39,6 +39,7 @@ typedef struct rspamd_io_dispatcher_s { enum io_policy policy; /**< IO policy */ size_t nchars; /**< how many chars to read */ int fd; /**< descriptor */ + gboolean wanna_die; /**< if dispatcher should be stopped */ dispatcher_read_callback_t read_callback; /**< read callback */ dispatcher_write_callback_t write_callback; /**< write callback */ dispatcher_err_callback_t err_callback; /**< error callback */ |