Skip to content

Commit 339f013

Browse files
committedDec 20, 2024
Rewrite comments to improve clarity
1 parent 8a06676 commit 339f013

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/iocore/net/UnixNetVConnection.cc

+4-5
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,10 @@ UnixNetVConnection::net_read_io(NetHandler *nh)
574574
return;
575575
}
576576

577-
// We should only splice once to the pipe
578-
// Linux splice() does not merge pipe buffer page so there is no guarantee that we can splice to pipe again
579-
// without receiving EAGAIN from pipe even if data_in_pipe < pipe_capacity
580-
// Disable read until consumer finish a successful splice from pipe to socket operation
581-
// which means there are available pages in the pipe
577+
// We should only splice once to the pipe until the pipe is cleared by consumer
578+
// Linux splice() does not merge pipe buffer page so there is no guarantee that
579+
// we can splice to pipe again without receiving EAGAIN from pipe even if data_in_pipe < pipe_capacity
580+
// Disable read until consumer finish a successful splice from pipe to socket operation and the pipe is empty
582581
read_disable(nh, this);
583582
return;
584583
}

0 commit comments

Comments
 (0)
Failed to load comments.