echo 之前只会用select机制(基于我个人目前遇到的问题,足够用了),想学一下epoll,最熟悉的就是echo了,所以基于epoll机制写一个高并发的 echo服务器。 还编写了一个简陋的测试客户端,使用Golang语言编写(我感觉它最方便了)使用gorutine模拟多个并发的客户端。 经过测试,在我1GB内存的虚拟机上并发运行1000+客户端没问题,再高没进行测试。