From: Nicolas J. Bouliane Date: Sun, 3 May 2020 00:32:10 +0000 (+0000) Subject: bufferevent: allow setting priority on socket and openssl type X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdc5200acdf0a004ddc805b87bf09439fe2ebe7f;p=libevent bufferevent: allow setting priority on socket and openssl type --- diff --git a/bufferevent_sock.c b/bufferevent_sock.c index e92f46f3..eca7b315 100644 --- a/bufferevent_sock.c +++ b/bufferevent_sock.c @@ -661,7 +661,7 @@ bufferevent_priority_set(struct bufferevent *bufev, int priority) struct bufferevent_private *bufev_p = BEV_UPCAST(bufev); BEV_LOCK(bufev); - if (!BEV_IS_SOCKET(bufev)) + if (BEV_IS_ASYNC(bufev) || BEV_IS_FILTER(bufev) || BEV_IS_PAIR(bufev)) goto done; if (event_priority_set(&bufev->ev_read, priority) == -1)