[dovecot-cvs] dovecot/src/imap client.c,1.56,1.57
cras at dovecot.org
cras at dovecot.org
Sat Sep 24 12:48:00 EEST 2005
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv31327
Modified Files:
client.c
Log Message:
client_send_line(): Try flushing output immediately if buffer gets full.
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- client.c 3 Jul 2005 21:35:18 -0000 1.56
+++ client.c 24 Sep 2005 09:47:58 -0000 1.57
@@ -117,8 +117,12 @@
if (o_stream_sendv(client->output, iov, 2) < 0)
return -1;
- return o_stream_get_buffer_used_size(client->output) <
- CLIENT_OUTPUT_OPTIMAL_SIZE;
+ if (o_stream_get_buffer_used_size(client->output) >=
+ CLIENT_OUTPUT_OPTIMAL_SIZE) {
+ /* buffer full, try flushing */
+ return o_stream_flush(client->output);
+ }
+ return 1;
}
void client_send_tagline(struct client_command_context *cmd, const char *data)
More information about the dovecot-cvs
mailing list