FULI

Results 240 comments of FULI

> 这是我启动echo_server, telnet 连接上去,CPU的占用 > ![image](https://user-images.githubusercontent.com/1538781/121626980-0fe6cd80-caa9-11eb-8163-57f960d40673.png) 看到了,确实有这个问题。

> 还有个问题,我注意到你使用了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

![image](https://github.com/xtaci/gaio/assets/2346725/09fc7e4b-5b4c-410f-b895-bcf1288df746) 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行为