http_get: fix retries on broken connections
commit43a58239cc4de29a5c315b9feb05b965d675e463
authorEric Wong <e@80x24.org>
Thu, 26 Sep 2019 21:19:42 +0000 (26 21:19 +0000)
committerEric Wong <e@80x24.org>
Thu, 26 Sep 2019 21:24:45 +0000 (26 21:24 +0000)
tree409275d864d65b8316fdb522406b40eb3ce5f7a2
parent9eb2d04fa580aebe34bcbc0cb64eb937b037021a
http_get: fix retries on broken connections

We need to create a new connection when retrying on GET
failures, otherwise we hit a 100% CPU usage loop with a constant
stream of IOError if we exceed the (default) 2s timeout.
lib/omgdav/http_get.rb