Coder Social home page Coder Social logo

epollserver's Issues

性能不好

不知道你做过性能测试没有,但根据epoll的特性,性能还不如阻塞读写

Write buffer full

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失败

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.