Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2018 17:34:23 +0000 (UTC)
From:      Richard Gallamore <ultima@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458757 - in head/www/libevhtp: . files
Message-ID:  <201801111734.w0BHYN81039930@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801111734.w0BHYN81039930>