Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seaswalker authored Jul 6, 2020
1 parent 7549eea commit 343a3c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,9 @@ public void lengthFieldBasedDecoder() throws IOException, InterruptedException {
}
```

# TODO

为了确保测试用例能够通过,使用了基于端口取余的worker线程分配方式,这样保证了向client发送数据的先后顺序。目前写功能很原始,只是将经过OutboundHandler处理的数据不做任何操作直接写入,这样的问题在于:
1. OS写缓冲区满,写入失败
2. OS缓冲区可用空间不足一次性写入,要分多次写入
3. 客户端如果已断开或网络出问题怎么办,可能需要心跳检测之类的手段

0 comments on commit 343a3c7

Please sign in to comment.