nerdante / epollserver Goto Github PK
View Code? Open in Web Editor NEWepoll based tcp/udp server
License: MIT License
epoll based tcp/udp server
License: MIT License
不知道你做过性能测试没有,但根据epoll的特性,性能还不如阻塞读写
Hi Developer - Sometime it may happen that during writing it may return EAGAIN .. means send buffer may be full try again later.
Can you please handle that case. I mean storing the message in the local user buffer and retry to write again when write events happen.
Thanks
ecbuf_capacity_extend()函数的realloc失败了,请教一下楼主。错误输出如下: [code=csharp] buff capacity extend error
expand capacity fail, failtimes = 1
buff capacity extend error
expand capacity fail, failtimes = 2
*** Error in `./example': double free or corruption (top): 0x000000000257e060
*** ======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ff47caf67e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7ff47caff37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ff47cb0353c]
/lib/x86_64-linux-gnu/libc.so.6(realloc+0x2a5)[0x7ff47cb03965] /home/liguiyuan/study/my_lessons/network/111/epollServer/example/../install/lib/libepserver.so(+0x1d6a)[0x7ff47ce4ad6a] /home/liguiyuan/study/my_lessons/network/111/epollServer/example/../install/lib/libepserver.so(vecbuf_add_tail+0x45)[0x7ff47ce4adfc] /home/liguiyuan/study/my_lessons/network/111/epollServer/example/../install/lib/libepserver.so(handle_client_message+0x74)[0x7ff47ce4a774] /home/liguiyuan/stud
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.