Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionResetError keeps happening #401

Open
remdragon opened this issue Jul 17, 2023 · 0 comments
Open

ConnectionResetError keeps happening #401

remdragon opened this issue Jul 17, 2023 · 0 comments

Comments

@remdragon
Copy link

Keep getting these on the console. Is there something that I have misconfigured?

Jul17 08:42:20.333 CDT-0500 <18064> [asyncio] ERROR: Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "C:\Python310-64\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Python310-64\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
    self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

This happens regardless of whether I have a valid cert or a self-signed cert.

Here's how my environment is boot-strapped, in case it matters:

	uvicorn.run(
		'__main__:app',
		host = http_interface,
		port = http_port,
		log_level = 'info',
		workers = 1,
		ssl_keyfile = str( cert.key_path ),
		ssl_certfile = cert.crt_path,
	)

Version information:

Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] on win32
blacksheep==1.2.18
uvicorn==0.23.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant