mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-07 19:31:01 -04:00
bufferevent: allow setting priority on socket and openssl type
(cherry picked from commit bdc5200acdf0a004ddc805b87bf09439fe2ebe7f)
This commit is contained in:
parent
a6974d1132
commit
4dd3acddf8
@ -650,7 +650,7 @@ bufferevent_priority_set(struct bufferevent *bufev, int priority)
|
|||||||
struct bufferevent_private *bufev_p = BEV_UPCAST(bufev);
|
struct bufferevent_private *bufev_p = BEV_UPCAST(bufev);
|
||||||
|
|
||||||
BEV_LOCK(bufev);
|
BEV_LOCK(bufev);
|
||||||
if (!BEV_IS_SOCKET(bufev))
|
if (BEV_IS_ASYNC(bufev) || BEV_IS_FILTER(bufev) || BEV_IS_PAIR(bufev))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
if (event_priority_set(&bufev->ev_read, priority) == -1)
|
if (event_priority_set(&bufev->ev_read, priority) == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user