Skip to content

Commit

Permalink
bufferevent: allow setting priority on socket and openssl type
Browse files Browse the repository at this point in the history
  • Loading branch information
nicboul committed May 3, 2020
1 parent 86eafc0 commit bdc5200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bufferevent_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bdc5200

Please sign in to comment.