Merge "Fix secondary exception in fingergw"
This commit is contained in:
commit
25f4f7a45c
|
@ -64,6 +64,8 @@ class RequestHandler(streamer_utils.BaseFingerRequestHandler):
|
||||||
This method is called by the socketserver framework to handle an
|
This method is called by the socketserver framework to handle an
|
||||||
incoming request.
|
incoming request.
|
||||||
'''
|
'''
|
||||||
|
server = None
|
||||||
|
port = None
|
||||||
try:
|
try:
|
||||||
build_uuid = self.getCommand()
|
build_uuid = self.getCommand()
|
||||||
port_location = self.rpc.get_job_log_stream_address(build_uuid)
|
port_location = self.rpc.get_job_log_stream_address(build_uuid)
|
||||||
|
@ -73,17 +75,15 @@ class RequestHandler(streamer_utils.BaseFingerRequestHandler):
|
||||||
self.request.sendall(msg.encode('utf-8'))
|
self.request.sendall(msg.encode('utf-8'))
|
||||||
return
|
return
|
||||||
|
|
||||||
self._fingerClient(
|
server = port_location['server']
|
||||||
port_location['server'],
|
port = port_location['port']
|
||||||
port_location['port'],
|
self._fingerClient(server, port, build_uuid)
|
||||||
build_uuid,
|
|
||||||
)
|
|
||||||
except BrokenPipeError: # Client disconnect
|
except BrokenPipeError: # Client disconnect
|
||||||
return
|
return
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception(
|
self.log.exception(
|
||||||
'Finger request handling exception (%s:%s):',
|
'Finger request handling exception (%s:%s):',
|
||||||
port_location['server'], port_location['port'])
|
server, port)
|
||||||
msg = 'Internal streaming error'
|
msg = 'Internal streaming error'
|
||||||
self.request.sendall(msg.encode('utf-8'))
|
self.request.sendall(msg.encode('utf-8'))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue