[dovecot-cvs] dovecot/src/imap main.c,1.33,1.34

cras at procontrol.fi cras at procontrol.fi
Fri May 23 18:39:47 EEST 2003


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv21098

Modified Files:
	main.c 
Log Message:
Minor speedup



Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- main.c	14 May 2003 18:23:04 -0000	1.33
+++ main.c	23 May 2003 14:39:45 -0000	1.34
@@ -2,6 +2,7 @@
 
 #include "common.h"
 #include "ioloop.h"
+#include "ostream.h"
 #include "lib-signals.h"
 #include "rawlog.h"
 #include "restrict-access.h"
@@ -131,6 +132,7 @@
 
 	client = client_create(hin, hout, storage);
 
+        o_stream_cork(client->output);
 	if (IS_STANDALONE()) {
 		client_send_line(client, t_strconcat(
 			"* PREAUTH [CAPABILITY "CAPABILITY_STRING"] "
@@ -140,6 +142,7 @@
 		client_send_line(client, t_strconcat(getenv("IMAPLOGINTAG"),
 						     " OK Logged in.", NULL));
 	}
+        o_stream_flush(client->output);
 }
 
 static void main_deinit(void)



More information about the dovecot-cvs mailing list