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
-
abcdev30757ybut usually service returned / throw error 4 while not connected to internet.. strange you didn't notice.
😂😂 -
joas18917y@b3b3 Yeah, that's with the low level languages. You must consider every possible thing that could happen. In this case, no internet. I don't think TCP implements any kind of handshacking, so there's no errors directly from socket. It just wait that you or the server (that may or may not exist) sends a message and just passes that forward. In HTTP there's always a response after request so a simple timeout will do just fine.
Related Rants
So I'm working on an CLI right now that fetches data from a website and downloads other stuff based on that data etc bla bla. And since its async it can fully taste my whole internet speed (130Mb/s).
So everything's good and I started working on a new feature. I started the app and it worked... For 3 minutes. After that it just stopped. It didn't even freeze or anything. After 2 hours of debugging and 3 cans of coffee I was so frustrated I just wanted to watch some YouTube and relax. That's the moment I realized I didn't even have internet. I hate my ISP...
undefined
isp
debugging
sado maso
coffee