852
submitted 2 months ago by BlueKey@fedia.io to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] bl_r@lemmy.dbzer0.com 13 points 2 months ago

I’ve run into the same problem with an API server I wrote in rust. I noticed this bug 5 minutes before a demo and panicked, but fixed it with a 1 second sleep. Eventually, I implemented a more permanent fix by changing the simplistic io calls to ones better designed for streams

[-] dfyx@lemmy.helios42.de 7 points 2 months ago

The actual recommended solution is to just read in a loop until you have everything.

this post was submitted on 03 Sep 2024
852 points (99.4% liked)

Programmer Humor

32410 readers
242 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS