mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix reinit of fds with EV_WRITE but not EV_READ.
Bugfix on 2.1.1-alpha.
This commit is contained in:
parent
911abf3dd2
commit
ebfd8a8967
2
evmap.c
2
evmap.c
@ -582,7 +582,7 @@ evmap_io_reinit_iter_fn(struct event_base *base, evutil_socket_t fd,
|
||||
extra = ((char*)ctx) + sizeof(struct evmap_io);
|
||||
if (ctx->nread)
|
||||
events |= EV_READ;
|
||||
if (ctx->nread)
|
||||
if (ctx->nwrite)
|
||||
events |= EV_WRITE;
|
||||
if (evsel->fdinfo_len)
|
||||
memset(extra, 0, evsel->fdinfo_len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user