Commit 6c37db0f 6c37db0fb7827dfd0d3141661097ed3d6b016c13 by Sergey Poznyakoff

force ofile to be line-buffered, so command

  continuation requests are immediately visible.
1 parent 02cde26e
...@@ -192,6 +192,8 @@ imap4d_mainloop (int infile, int outfile) ...@@ -192,6 +192,8 @@ imap4d_mainloop (int infile, int outfile)
192 if (!ofile || !ifile) 192 if (!ofile || !ifile)
193 imap4d_bye (ERR_NO_OFILE); 193 imap4d_bye (ERR_NO_OFILE);
194 194
195 setvbuf(ofile, NULL, _IOLBF, 0);
196
195 syslog (LOG_INFO, "Incoming connection opened"); 197 syslog (LOG_INFO, "Incoming connection opened");
196 198
197 /* log information on the connecting client */ 199 /* log information on the connecting client */
......