Comments (8)
EAGAIN is intended, ENOENT is not intended but probably part of libuv. You can try the same with the raw epoll and there shouldn't be any of those
from usockets.
I tested with raw epoll and it is clean. With libuv I get the same issues you post here. So looks like libuv is broken.
from usockets.
ENOENT op was EPOLL_CTL_MOD or EPOLL_CTL_DEL, and fd is not
registered with this epoll instance.
It doesn't have to be a bug, can just be inefficient use of epoll_ctl. As long as the error is not EBADF it doesn't have to be a bug. EBADF would definitely be a critical bug.
from usockets.
It doesn't have to be a bug, can just be inefficient use of epoll_ctl. As long as the error is not EBADF it doesn't have to be a bug. EBADF would definitely be a critical bug.
While that might be true, you probably know best as creator of this library. It might still be a thing affecting high performance. Your library is optimized so much for the best possible throughput that an inefficiency anywhere in the stack likely leads to a measurable performance regression.
Is there a runtime environment variable i can set to measure this without recompiling this all the way up to uWebSockets js? Just curious to know what the raw epoll version would do in tersm of req/sec.
from usockets.
It's libuv, nothing we can do about it
from usockets.
You ran it with raw epoll, right?
How?
from usockets.
Uwebsockets.js always runs with libuv because its the event loop of nodejs. The C++ lib itself defaults to raw epoll.
from usockets.
Ah, that makes sense! Thank you for explaining.
Feel free to do whatever you want with this issue. The way i see it there might be a bug somewhere. But you can also argue the bug is upstream in libuv. It's up to you.
from usockets.
Related Issues (20)
- Weird error when using ARM64 arch HOT 1
- Extremely low performance and double free HOT 9
- "src/internal/internal.h:119:5: error: unknown type name 'uint32_t'" When building with boost.asio
- Rewrite in Rust
- Zig experiment ? HOT 1
- [regression in 0.8.6] error: use of undeclared identifier 'IP_PKTINFO' HOT 1
- Compile static library on windows HOT 2
- Error initializing structure msg_hdr by UDP, field msg_name
- us_socket_context_connect timeout HOT 6
- Server fails to bind localhost in container
- Memory leak in us_create_timer
- It is good, can it support CMakeLists.txt? HOT 1
- Tests fail to compile: error: comparison between pointer and integer ('void *' and 'int') HOT 2
- us_socket_context_pre_open event
- Build fails without -fPIC flag supplied from outside
- works with letsencrypt ? HOT 2
- Failed to bind to 0.0.0.0
- nullptr access in us_internal_loop_unlink
- Update boringSSL 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 usockets.