http_server_connection_disconnect() has several cleanup calls, which weren't
done because closed=TRUE was set explicitly and that skipped the cleanup.
#include "http-server-private.h"
+static void
+http_server_connection_disconnect(struct http_server_connection *conn,
+ const char *reason);
+
/*
* Logging
*/
struct http_server_connection *conn =
(struct http_server_connection *)_conn;
- conn->closed = TRUE;
+ http_server_connection_disconnect(conn, NULL);
http_server_connection_unref(&conn);
}