Skip to content

Commit 4dd3acd

Browse files
nicboulazat
authored andcommittedJun 28, 2020
bufferevent: allow setting priority on socket and openssl type
(cherry picked from commit bdc5200)
1 parent a6974d1 commit 4dd3acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bufferevent_sock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ bufferevent_priority_set(struct bufferevent *bufev, int priority)
650650
struct bufferevent_private *bufev_p = BEV_UPCAST(bufev);
651651

652652
BEV_LOCK(bufev);
653-
if (!BEV_IS_SOCKET(bufev))
653+
if (BEV_IS_ASYNC(bufev) || BEV_IS_FILTER(bufev) || BEV_IS_PAIR(bufev))
654654
goto done;
655655

656656
if (event_priority_set(&bufev->ev_read, priority) == -1)

0 commit comments

Comments
 (0)
Please sign in to comment.