From f73fddb56f7c777251595da556d5ce022de6b2e2 Mon Sep 17 00:00:00 2001 From: reyk Date: Sun, 13 Jul 2014 14:46:52 +0000 Subject: [PATCH] Close the connection after the response is completed (no Keepalive yet). --- usr.sbin/httpd/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/httpd/server.c b/usr.sbin/httpd/server.c index e963492481f..f461e5f8bba 100644 --- a/usr.sbin/httpd/server.c +++ b/usr.sbin/httpd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.2 2014/07/13 14:17:37 reyk Exp $ */ +/* $OpenBSD: server.c,v 1.3 2014/07/13 14:46:52 reyk Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter @@ -397,9 +397,9 @@ server_error(struct bufferevent *bev, short error, void *arg) bufferevent_disable(bev, EV_READ|EV_WRITE); clt->clt_done = 1; + server_close(clt, "done"); return; -// server_close(con, "done"); } server_close(clt, "buffer event error"); return; -- 2.20.1