summaryrefslogtreecommitdiff
path: root/zuul/lib/fingergw.py
diff options
context:
space:
mode:
Diffstat (limited to 'zuul/lib/fingergw.py')
-rw-r--r--zuul/lib/fingergw.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/zuul/lib/fingergw.py b/zuul/lib/fingergw.py
index c89ed0f4a..b56fe0461 100644
--- a/zuul/lib/fingergw.py
+++ b/zuul/lib/fingergw.py
@@ -66,11 +66,19 @@ class RequestHandler(streamer_utils.BaseFingerRequestHandler):
try:
build_uuid = self.getCommand()
port_location = self.rpc.get_job_log_stream_address(build_uuid)
+
+ if not port_location:
+ msg = 'Invalid build UUID %s' % build_uuid
+ self.request.sendall(msg.encode('utf-8'))
+ return
+
self._fingerClient(
port_location['server'],
port_location['port'],
build_uuid,
)
+ except BrokenPipeError: # Client disconnect
+ return
except Exception:
self.log.exception('Finger request handling exception:')
msg = 'Internal streaming error'