Ignore more network related errors during websocket communication. (#5269)
Intermittent network issues during websocket communication should not crash ComfyUi process. Co-authored-by: Xiaodong Xie <xie.xiaodong@frever.com>
This commit is contained in:
parent
67158994a4
commit
89f15894dd
|
@ -40,7 +40,7 @@ class BinaryEventTypes:
|
||||||
async def send_socket_catch_exception(function, message):
|
async def send_socket_catch_exception(function, message):
|
||||||
try:
|
try:
|
||||||
await function(message)
|
await function(message)
|
||||||
except (aiohttp.ClientError, aiohttp.ClientPayloadError, ConnectionResetError) as err:
|
except (aiohttp.ClientError, aiohttp.ClientPayloadError, ConnectionResetError, BrokenPipeError, ConnectionError) as err:
|
||||||
logging.warning("send error: {}".format(err))
|
logging.warning("send error: {}".format(err))
|
||||||
|
|
||||||
def get_comfyui_version():
|
def get_comfyui_version():
|
||||||
|
|
Loading…
Reference in New Issue