瀏覽代碼

Add flow control for upstream (#316)

ithewei 3 年之前
父節點
當前提交
a34000e9ef
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      event/hevent.c

+ 1 - 0
event/hevent.c

@@ -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);
     }
 }