changeset 3352:75cfcf7736a7 HEAD

Connection could have gotten stuck sometimes, doing nothing until idle timeout happens.
author Timo Sirainen <tss@iki.fi>
date Fri, 29 Apr 2005 14:42:38 +0300
parents 63fc076992bf
children 286cc0cd888a
files src/pop3/client.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3/client.c	Fri Apr 29 14:17:40 2005 +0300
+++ b/src/pop3/client.c	Fri Apr 29 14:42:38 2005 +0300
@@ -243,6 +243,12 @@
 				   our output */
 				io_remove(client->io);
 				client->io = NULL;
+
+				/* If someone happens to flush output,
+				   we want to get our IO handler back in
+				   flush callback */
+				o_stream_set_flush_pending(client->output,
+							   TRUE);
 			}
 		}
 	}