mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Ignore only socket.error at finalization stage of StreamRequestHandler, not other errors.
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ class RestApiHandler(BaseHTTPRequestHandler):
|
||||
if not self.wfile.closed:
|
||||
self.wfile.flush()
|
||||
self.wfile.close()
|
||||
except:
|
||||
except socket.error:
|
||||
pass
|
||||
self.rfile.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user