From: reyk Date: Sun, 13 Jul 2014 14:46:52 +0000 (+0000) Subject: Close the connection after the response is completed (no Keepalive yet). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f73fddb56f7c777251595da556d5ce022de6b2e2;p=openbsd Close the connection after the response is completed (no Keepalive yet). --- 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;