Skip to content

Commit

Permalink
Add flow control for upstream (ithewei#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Dec 6, 2022
1 parent 1906765 commit a34000e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions event/hevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ void hio_read_upstream(hio_t* io) {
void hio_read_upstream_on_write_complete(hio_t* io, const void* buf, int writebytes) {
hio_t* upstream_io = io->upstream_io;
if (upstream_io && hio_write_is_complete(io)) {
hio_setcb_write(io, NULL);
hio_read(upstream_io);
}
}
Expand Down

0 comments on commit a34000e

Please sign in to comment.