ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host when using SSL #2105
Replies: 4 comments 1 reply
-
Hi, I have exactly the same issue. The issue happen only with SSL. If I set backlog =1 the error happen on the second request (wait timeout_keep_alive=5s between the requests). |
Beta Was this translation helpful? Give feedback.
-
Hi, I have the same mistake too. Windows 10, python 3.11.6 |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
-
Got same issue on Uvicorn + SSL on Windows, on each close of connection from client side (when client closes page) server got next errors in log '[WinError 10054] An existing connection was forcibly closed by the remote host' on socket shutdown in asyncio. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm having an issue with the above error, even when using the minmal example from the docs.
The issue is only present when I'm running with SSL using "ssl-keyfile" and "ssl-certfile", e.g.
uvicorn main:app --ssl-certfile=cert.pem --ssl-keyfile=key.pem --port 8000 --host 0.0.0.0 --log-level trace
I'm running uvicorn 0.23.2 with CPython 3.11.4 on Windows.
The full traceback is:
Any ideas on why this error pops up?
Beta Was this translation helpful? Give feedback.
All reactions