From owner-svn-ports-head@freebsd.org Thu Jan 11 17:34:24 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59329E71019; Thu, 11 Jan 2018 17:34:24 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 33ECE7BAE3; Thu, 11 Jan 2018 17:34:24 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 709D418146; Thu, 11 Jan 2018 17:34:23 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0BHYNH5039932; Thu, 11 Jan 2018 17:34:23 GMT (envelope-from ultima@FreeBSD.org) Received: (from ultima@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0BHYN81039930; Thu, 11 Jan 2018 17:34:23 GMT (envelope-from ultima@FreeBSD.org) Message-Id: <201801111734.w0BHYN81039930@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ultima set sender to ultima@FreeBSD.org using -f From: Richard Gallamore Date: Thu, 11 Jan 2018 17:34:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458757 - in head/www/libevhtp: . files X-SVN-Group: ports-head X-SVN-Commit-Author: ultima X-SVN-Commit-Paths: in head/www/libevhtp: . files X-SVN-Commit-Revision: 458757 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 17:34:24 -0000 Author: ultima Date: Thu Jan 11 17:34:22 2018 New Revision: 458757 URL: https://svnweb.freebsd.org/changeset/ports/458757 Log: * Bump revision for depends EV_WRITE should not be disabled here and was added with the assumption that libevent would automatically start transferring pending data. Much more detailed write up can be found here: https://github.com/criticalstack/libevhtp/issues/70 Added: head/www/libevhtp/files/patch-evhtp.c (contents, props changed) Modified: head/www/libevhtp/Makefile Modified: head/www/libevhtp/Makefile ============================================================================== --- head/www/libevhtp/Makefile Thu Jan 11 17:09:58 2018 (r458756) +++ head/www/libevhtp/Makefile Thu Jan 11 17:34:22 2018 (r458757) @@ -2,6 +2,7 @@ PORTNAME= libevhtp PORTVERSION= 1.2.15 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= ultima@FreeBSD.org Added: head/www/libevhtp/files/patch-evhtp.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/libevhtp/files/patch-evhtp.c Thu Jan 11 17:34:22 2018 (r458757) @@ -0,0 +1,30 @@ +--- evhtp.c.orig 2017-12-06 22:34:23 UTC ++++ evhtp.c +@@ -2373,15 +2373,15 @@ htp__connection_writecb_(struct bufferevent * bev, voi + return; + } + +- /* run user-hook for on_write callback before further analysis */ +- htp__hook_connection_write_(conn); +- + /* connection is in a paused state, no further processing yet */ + if ((conn->flags & EVHTP_CONN_FLAG_PAUSED)) + { + return; + } + ++ /* run user-hook for on_write callback before further analysis */ ++ htp__hook_connection_write_(conn); ++ + if (conn->flags & EVHTP_CONN_FLAG_WAITING) + { + HTP_FLAG_OFF(conn, EVHTP_CONN_FLAG_WAITING); +@@ -3043,7 +3043,7 @@ evhtp_connection_pause(evhtp_connection_t * c) + + HTP_FLAG_ON(c, EVHTP_CONN_FLAG_PAUSED); + +- bufferevent_disable(c->bev, EV_READ | EV_WRITE); ++ bufferevent_disable(c->bev, EV_READ); + + return; + }