Why the inconsistency? More importantly, how can I achieve consistent
results? It’s maddening when a website is obviously functional and yet I
am told it’s not.
Why the inconsistency? More importantly, how can I achieve consistent
results? It’s maddening when a website is obviously functional and yet I
am told it’s not.
Try this and see if you can determine why it’s failing sometimes:
On what basis do you come to this conclusion? Maybe your webserver is
not accepting all connection attempts to control the load. Maybe there
are network issues. So far I have not seen evidence that there is
something wrong with Ruby’s net library. (Btw, which version are you
using?)
net-ping isn’t part of the Ruby standard library. There’s a ping
library, but net-ping is a different beast.
Also, your problem did inspire me to make one change, which is to
alter the Net::Ping::HTTP class so that a URI without a path assumes
‘/’ for the path.
Regards,
Dan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.