Comments (6)
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.
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.
I don't have experience with the deferred callback system in libevent yet, so you might have an easier time of it.
from libevent.
Hm, this could be fixed with BEV_OPT_DEFER_CALLBACKS
, no?
from libevent.
Actually there is a check against bev_async->ok
, so it mustn't call bev_async_consider_reading
Line 325 in 571dbac
from libevent.
I'm closing this, since there is a unit test that passes, please reopen if you will find problems.
from libevent.
Related Issues (20)
- 2.1.12-stable fails test/regress type tests on FreeBSD 14.0 AMD64 HOT 2
- epoll_pwait2 only supported by recent valgrind
- Compile error in wepoll.c with mingw from ubuntu-22.04.2
- Incorrect CMAKE_INSTALL_RPATH HOT 1
- http.c evhttp_make_request can`t send message by vrf network HOT 9
- nameserver_probe_callback() accesses a nameserver object freed by evdns_base_clear_nameservers_and_suspend() HOT 6
- Support for `visionos` as a platform HOT 5
- Compile error in bufferevent_openssl.c w/ MSVC HOT 2
- add a param (ev_misalign_t misalign) to function evbuffer_add_reference HOT 3
- Libevent 2.2 stable release
- Warnings reported by Infer HOT 2
- Bug in make_ws_frame (ws.c), bug in get_ws_frame (ws.c) HOT 1
- Suggest hash-pin GitHub Actions with sensitive permissions and a Dependency-Update-Tool HOT 5
- Which version is currently most suitable for libevent? HOT 2
- How to get the reqeust queue length of one evhttp_connection? HOT 1
- libevent debugging HOT 1
- [bug] Event activated by event_active on another thread may loss while event timeout HOT 4
- clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [sample/le-proxy] Error 1 HOT 1
- Fix MbedTLS and ZLIB for windows on CI HOT 1
- May bug in evhttp_connection_free_on_completion when the evhttp_connection fail to connect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libevent.