this post was submitted on 02 Oct 2024
762 points (99.2% liked)

Programmer Humor

19817 readers
1282 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
762
Packet Loss (lemmy.world)
submitted 2 months ago* (last edited 2 months ago) by carrylex to c/[email protected]
 

Found this in the depths of my storage. Not sure where its from but might improve the day of some people ^^

you are viewing a single comment's thread
view the rest of the comments
[–] bruhduh 7 points 2 months ago (3 children)

It's actually panic in both

[–] [email protected] 3 points 2 months ago

Packets are lost all the time. Especially when uploading or downloading.

[–] [email protected] 3 points 2 months ago

May I interest you in using unwrap_or instead of unwrap

[–] [email protected] 1 points 2 months ago

If you don't loose packets, you aren't using the connection to its limits.
Just look at the TCP spec, the only way to know the approximate bandwidth is to send more and more packets until some drop.