dovecot-2.0: script: We want incoming fd to be blocking to avoid...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 28 15:14:34 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/156f24de1081
changeset: 10812:156f24de1081
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 28 15:14:32 2010 +0200
description:
script: We want incoming fd to be blocking to avoid EAGAIN errors.

diffstat:

 src/util/script.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 23858ce6422e -r 156f24de1081 src/util/script.c
--- a/src/util/script.c	Sun Feb 28 14:13:30 2010 +0200
+++ b/src/util/script.c	Sun Feb 28 15:14:32 2010 +0200
@@ -35,6 +35,7 @@
 	int fd = -1;
 	ssize_t ret;
 
+	net_set_nonblock(conn->fd, FALSE);
 	instr = t_str_new(1024);
 	ret = fd_read(conn->fd, buf, sizeof(buf), &fd);
 	while (ret > 0) {


More information about the dovecot-cvs mailing list