Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Something like that is fun to write yourself. Maybe use library if you're not familiar with sockets yet
-
Also, why c++? The network will limit speed anyway. I would use aiohttp python lib
-
can be written in majority languages' core network stack
Do limit the threads to double digits tho, I remember I did something similar with ICMP ping ages ago during my internship n for some N+ threads, Ubuntu did a Kernel Panic and the network driver/device crashed, only way to fix was a reboot (service restart didn't help either)
not a heavy-Linux guy so maybe theres better ways to circumvent it (if it hasn't been fixed already), but if you do spawn unlimited threads, try to keep 50/double digit active ones, (thradpool works) -
@azuredivay This runs easily with 2500 threads on a VM with 4 cores. Anything north of 2500 and madness will ensue.
-
@retoor I don't do Python because I care about the rain forests. How much Carbon dioxide will running Phyton code generate?
https://towardsdatascience.com/how-...
Related Rants
-
YADU3Working on a small little video game, but myself. I need an artist eventually. But for now, I've got my litt...
-
b2plane16Struggling to earn money to pay for medical bills for my dad at a private hospital because he's having some pr...
-
netikras12a shell oneliner periodically checking devrant's availability and sending me a notification when it starts wor...
A C++ program that spawns as many threads as it can to open TLS 1.2 connections to a given server and send random data.
Needed this to test scalability of one of our services.
rant
wk364