view src/lib/istream-timeout.h @ 22633:9284bdc3c5c5

director: Don't recreate timeout on every user lookup Recreate it only when the timeout should change.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 04 Nov 2017 01:34:02 +0200
parents b1a756176ed2
children
line wrap: on
line source

#ifndef ISTREAM_TIMEOUT_H
#define ISTREAM_TIMEOUT_H

/* Return ETIMEDOUT error if read() doesn't return anything for timeout_msecs.
   If timeout_msecs=0, there is no timeout. */
struct istream *
i_stream_create_timeout(struct istream *input, unsigned int timeout_msecs);

#endif