[dovecot-cvs] dovecot/src/lib obuffer-file.c,1.15,1.16
cras at procontrol.fi
cras at procontrol.fi
Wed Nov 13 03:30:29 EET 2002
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv31560
Modified Files:
obuffer-file.c
Log Message:
o_buffer_send() should have tried to send data immediately if the buffer was
in non-blocking state.
Index: obuffer-file.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/obuffer-file.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- obuffer-file.c 4 Nov 2002 07:11:32 -0000 1.15
+++ obuffer-file.c 13 Nov 2002 01:30:27 -0000 1.16
@@ -474,7 +474,7 @@
/* never try sending buffer immediately if we're block,
so we don't need to deal with timeout issues here */
- if (IS_BUFFER_EMPTY(fbuf) && BUFFER_IS_BLOCKING(fbuf) &&
+ if (IS_BUFFER_EMPTY(fbuf) && !BUFFER_IS_BLOCKING(fbuf) &&
(!fbuf->corked || !_have_space(buf, size))) {
iov.iov_base = (void *) data;
iov.iov_len = size;
More information about the dovecot-cvs
mailing list