view src/lib/istream-timeout.h @ 22664:fea53c2725c0

director: Fix director_max_parallel_moves/kicks type Should be uint, not time.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 09 Nov 2017 12:24:16 +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