From ad510b936883b23f545f14f257155aad14e9bae2 Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Tue, 24 Mar 2009 23:52:59 -0500 Subject: [PATCH] Initialize connection state -- otherwise reclaimed connections were all in state SMTP_CLOSED, and would be closed immediately... --- conn_pool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/conn_pool.c b/conn_pool.c index aca603f..3a44436 100644 --- a/conn_pool.c +++ b/conn_pool.c @@ -121,6 +121,7 @@ listener_loop(void *data) c->fd = fd; io_initconn(c); greeting(c); + c->state = SMTP_GREET; if (c->wdata.s) { c->event = EV_WRITE; } else { -- 2.50.1