[dovecot-cvs] dovecot/src/imap client.c,1.80,1.81

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


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

Modified Files:
	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.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- client.c	15 Mar 2007 14:41:47 -0000	1.80
+++ client.c	21 Mar 2007 19:16:44 -0000	1.81
@@ -156,6 +156,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) {
@@ -180,6 +181,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