mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Don't pre-maturely close the input buffer
This commit is contained in:
@@ -3633,6 +3633,10 @@ pub const FIFO = struct {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.buf.len == 0 and available_to_read != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const read_result = this.read(this.buf, available_to_read);
|
||||
if (read_result == .read and read_result.read.len == 0) {
|
||||
if (this.poll_ref != null)
|
||||
|
||||
Reference in New Issue
Block a user