Comments (2)
Thank you, but I would expect one of the later system calls to fail and abort execution if pthread_mutex_init was to fail, and failure of socket() will be caught by the connect() call.
While I do see your point, I think that overly pedantic checking of return values obscures the intent of the code and is not necessary here.
from wrk.
I suggest to avoid unchecked function calls. Would you like to detect every error situation as early as possible?
There are some software design options and tools available to make error detection and the corresponding exception handling a bit more convenient, complete and safe.
from wrk.
Related Issues (20)
- Total request statistics are inaccurate
- Feature request: an example script with a pause after each request
- Any way to register a hook on response timeout?
- streaming requests and responses
- wrk 4.2.0 regression test failed with luajit 2.1.0-beta3-20230416.4 HOT 4
- how to use socks5 proxy?
- Multiple domain support
- How to compile wrk.c?
- add binaries download for windows 10/11
- Support for redirects
- support do a slow speedup on start
- Process to compile in windows 10/11 HOT 3
- What about high latency of wrk access interface on ubuntu? HOT 1
- Allow disable "keep alive" feature HOT 1
- Help needed invoking multiple addresses HOT 2
- Question of Nginx CPU usage under wrk stress test HOT 2
- No slash after domain drops GET query params
- Very need http proxy function, can support?
- test
- Sampling latency
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 wrk.