Skip to content

Commit 62daf1d

Browse files
authored
Merge pull request cch123#43 from yangwenmai/patch-1
Update io.md
2 parents 7cdccc0 + edd695f commit 62daf1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func normal(src, dst net.Conn) {
290290
ssize_t splice(int fd_in, off64_t *off_in, int fd_out,
291291
off64_t *off_out, size_t len, unsigned int flags);
292292
```
293-
一句话概括就是, `splice` 不需要从内核空间复制这部分数据到用户空间就可以支持将数据从两个文件描述符之间进行转移, 不过两个描述符至少得有一个是 `pipe`, 一下列举如何利用`splice`完成 `socket->socket` 的数据代理
293+
一句话概括就是, `splice` 不需要从内核空间复制这部分数据到用户空间就可以支持将数据从两个文件描述符之间进行转移, 不过两个描述符至少得有一个是 `pipe`, 以下列举如何利用`splice`完成 `socket->socket` 的数据代理
294294
295295
example:
296296
```go
@@ -717,4 +717,4 @@ func Splice(dst, src *FD, remain int64) (written int64, handled bool, sc string,
717717
## 参考资料
718718

719719
- https://go-review.googlesource.com/c/go/+/271537/
720-
- https://zhuanlan.zhihu.com/p/308054212
720+
- https://zhuanlan.zhihu.com/p/308054212

0 commit comments

Comments
 (0)