Code Monkey home page Code Monkey logo

Comments (6)

ghazel avatar ghazel commented on May 18, 2024

bev_async_consider_writing has this same problem. It really seems like the event callbacks for these two cases should be deferred. It's pretty hard to plan for evbuffer_add deleting the bufferevent out from under you.

from libevent.

nmathewson avatar nmathewson commented on May 18, 2024

I agree. Is this something you can do a patch for, or should I look into it? The 2.1 ACTIVE_LATER framework might make this easier to implement, but would require more infrastructure changes on bufferevents in general.

from libevent.

ghazel avatar ghazel commented on May 18, 2024

I don't have experience with the deferred callback system in libevent yet, so you might have an easier time of it.

from libevent.

azat avatar azat commented on May 18, 2024

Hm, this could be fixed with BEV_OPT_DEFER_CALLBACKS, no?

from libevent.

azat avatar azat commented on May 18, 2024

Actually there is a check against bev_async->ok, so it mustn't call bev_async_consider_reading

if (!bev_async->ok)

from libevent.

azat avatar azat commented on May 18, 2024

I'm closing this, since there is a unit test that passes, please reopen if you will find problems.

from libevent.

Related Issues (20)

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.