FULI
FULI
> 这是我启动echo_server, telnet 连接上去,CPU的占用 >  看到了,确实有这个问题。
> 还有个问题,我注意到你使用了EPOLLONESHOT|EPOLLET方式添加到epoll,但是每次从fd读数据(tryRead函数)并没有保证读干净(一直读到EAGAIN)。比如客户端向服务端发送7K数据并停止,服务端内核buffer中立即收到了7K数据,这时发起一个异步读请求ReadFull 4K数据能返回,但是后面只要客户端不再发数据,因为ET模式的缘故,就再也不会唤醒读了,导致剩余3K数据读不到。 不会
Dial后,使用gaio收发
you don't need gaio for UDP, since there is only **ONE** connection for UDP on server side. You **don't need io multiplexing**.
this makes the interface compatible
 test detached stucked here!
decrease the sndwnd & rcvwnd, you can start from 256
You can encode like this: ` |size|payload|` , try to add a size prefix before the payload.
这个不需要修改啊,下次任何的write操作,就会返回错误,这也是标准socket行为