depot/third_party/nixpkgs/pkgs/servers/wsdd/increase_timeout.patch
Default email 9543354213 Project import generated by Copybara.
GitOrigin-RevId: c21ba4f7bb4a3d621eb1d187e6b5e816bb85380c
2021-09-28 10:13:01 +02:00

13 lines
566 B
Diff

diff --git a/src/wsdd.py b/src/wsdd.py
index 88a7a2a..360e4f7 100755
--- a/src/wsdd.py
+++ b/src/wsdd.py
@@ -699,7 +699,7 @@ class WSDClient(WSDUDPMessageHandler):
request.add_header('Host', host)
try:
- with urllib.request.urlopen(request, None, 2.0) as stream:
+ with urllib.request.urlopen(request, None, 5.0) as stream:
self.handle_metadata(stream.read(), endpoint, xaddr)
except urllib.error.URLError as e:
logger.warning('could not fetch metadata from: {} {}'.format(url, e))