bufferevent: allow setting priority on socket and openssl type

(cherry picked from commit bdc5200acdf0a004ddc805b87bf09439fe2ebe7f)
This commit is contained in:
Nicolas J. Bouliane 2020-05-03 00:32:10 +00:00 committed by Azat Khuzhin
parent a6974d1132
commit 4dd3acddf8

View File

@ -650,7 +650,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)