[dovecot-cvs] dovecot/src/imap client.c,1.67.2.9,1.67.2.10

tss at dovecot.org tss at dovecot.org
Wed Mar 21 21:16:44 EET 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv16904/imap

Modified Files:
      Tag: branch_1_0
	client.c 
Log Message:
Keep better track of client->last_output timestamp.



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.67.2.9
retrieving revision 1.67.2.10
diff -u -d -r1.67.2.9 -r1.67.2.10
--- client.c	14 Mar 2007 12:46:10 -0000	1.67.2.9
+++ client.c	21 Mar 2007 19:16:42 -0000	1.67.2.10
@@ -148,6 +148,7 @@
 
 	if (o_stream_sendv(client->output, iov, 2) < 0)
 		return -1;
+	client->last_output = ioloop_time;
 
 	if (o_stream_get_buffer_used_size(client->output) >=
 	    CLIENT_OUTPUT_OPTIMAL_SIZE) {
@@ -172,6 +173,8 @@
 	(void)o_stream_send(client->output, " ", 1);
 	(void)o_stream_send_str(client->output, data);
 	(void)o_stream_send(client->output, "\r\n", 2);
+
+	client->last_output = ioloop_time;
 }
 
 void client_send_command_error(struct client_command_context *cmd,



More information about the dovecot-cvs mailing list