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
Related Rants
So today I was messing with a side project and for context it’s a networking program.
So I’ve designed the programs packets and what each do. The final step is just constructing them and sending them, but wait some random error that I traced from the file path being wrong to the packet containing a files name but then I realized that the packet after the file name wasn’t sending and so I looked at the contents of the first packet and IT WAS SENDING BOTH CONTENTS IN ONE and I fucking can’t tell you how hung up on this I got because there was nothing wrong with any other packet in anyway, and if I commented the file name packet out the next one worked and vice versa and it was so fucking infuriating and out of desperation I thought “what if I just gave it time between sending both” AND IT FUCKING WORKED. ONE LITTLE FUCKING sleep(.5) FIXES THE PROBLEM THAT PLAGUED ME QUITE LITERALLY ALL DAY I CANT. IM PRETTY SURE ITS STILL NOT A GOOD SOLUTION BUT IM ROLLING WITH IT!
rant
network programming
debugging