2 ms·
how does the gem failover if the machine it is being used on isn't connected to the internet?
by djhworld 16y ago
how does the gem failover if the machine it is being used on isn't connected to the internet?
- getsat 16y agoYou would get a SocketError exception from getaddrinfo because HTTParty (which uses Net::HTTP) can't lookup the hostname. If the hostname is already resolved, you'd get a Errno::EHOSTUNREACH exception from connect because there is no route to Google's servers.
- Uchikoma 16y agoLeaky abstraction http://www.joelonsoftware.com/articles/LeakyAbstractions.html http://www.joelonsoftware.com/articles/LeakyAbstractions.htm...
- getsat 16y agoHey, I didn't say it was awesome, I was just reporting what actually happens. :)
- burgerbrain 16y agoIn other words, "poorly".