mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
The corrected bufferevent filter semantics let us fix our openssl tests
This commit is contained in:
parent
ac27eb8276
commit
34331e456d
@ -182,7 +182,7 @@ respond_to_number(struct bufferevent *bev, void *ctx)
|
||||
evbuffer_add_printf(bufferevent_get_output(bev),
|
||||
"%d\n", n);
|
||||
TT_BLATHER(("Done reading; now writing."));
|
||||
// bufferevent_enable(bev, EV_WRITE);
|
||||
bufferevent_enable(bev, EV_WRITE);
|
||||
bufferevent_disable(bev, EV_READ);
|
||||
}
|
||||
|
||||
@ -193,7 +193,7 @@ done_writing_cb(struct bufferevent *bev, void *ctx)
|
||||
if (evbuffer_get_length(b))
|
||||
return;
|
||||
TT_BLATHER(("Done writing."));
|
||||
// bufferevent_disable(bev, EV_WRITE);
|
||||
bufferevent_disable(bev, EV_WRITE);
|
||||
bufferevent_enable(bev, EV_READ);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user