# HG changeset patch # User Timo Sirainen # Date 1251137099 14400 # Node ID 0827941c0e7cca08ba87465b6604f8147d954ba9 # Parent 366a327b028b6f30883710778875052c119306ef auth worker server: Don't assert-crash if the whole reply doesn't come in one packet. diff -r 366a327b028b -r 0827941c0e7c src/auth/auth-worker-server.c --- a/src/auth/auth-worker-server.c Mon Aug 24 13:13:45 2009 -0400 +++ b/src/auth/auth-worker-server.c Mon Aug 24 14:04:59 2009 -0400 @@ -98,6 +98,7 @@ o_stream_sendv(conn->output, iov, 3); + i_assert(conn->request == NULL); conn->request = request; timeout_remove(&conn->to); @@ -294,7 +295,9 @@ } } - if (conn->shutdown && conn->request == NULL) + if (conn->request != NULL) { + /* there's still a pending request */ + } else if (conn->shutdown) auth_worker_destroy(&conn, "Max requests limit", TRUE); else auth_worker_request_send_next(conn);