svn commit: r458757 - in head/www/libevhtp: . files
Richard Gallamore
ultima at FreeBSD.org
Thu Jan 11 17:34:24 UTC 2018
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 at 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;
+ }
More information about the svn-ports-all
mailing list