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 during page load #266

Open
FelixFunk opened this issue Nov 5, 2024 · 0 comments
Open

ConnectionResetError during page load #266

FelixFunk opened this issue Nov 5, 2024 · 0 comments

Comments

@FelixFunk
Copy link

Environment

Python: 3.11
Quart: 0.19.6
Hypercorn: 0.17.3
Chromium: 129.0.6668.89

CMD

hypercorn run_service:quart_app -w 3 -b 0.0.0.0:44444 --debug --certfile "../dev/ssl/cert.pem" --keyfile "../dev/ssl/key.pem"

Issue

Sometimes during page load, a ConnectionResetError is thrown. Resulting in a disconnected websocket and the following stacktrace:

2024-11-05 11:56:31,490 | ERROR: Error on transport creation for incoming connection
handle_traceback: Handle created at (most recent call last):
  File "/usr/local/anaconda3/lib/python3.11/asyncio/base_events.py", line 1914, in _run_once
    handle._run()
  File "/usr/local/anaconda3/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/anaconda3/lib/python3.11/asyncio/selector_events.py", line 952, in _read_ready
    self._read_ready_cb()
  File "/usr/local/anaconda3/lib/python3.11/asyncio/selector_events.py", line 980, in _read_ready__get_buffer
    self._read_ready__on_eof()
  File "/usr/local/anaconda3/lib/python3.11/asyncio/selector_events.py", line 1021, in _read_ready__on_eof
    keep_open = self._protocol.eof_received()
  File "/usr/local/anaconda3/lib/python3.11/asyncio/sslproto.py", line 461, in eof_received
    self._on_handshake_complete(ConnectionResetError)
  File "/usr/local/anaconda3/lib/python3.11/asyncio/sslproto.py", line 585, in _on_handshake_complete
    self._wakeup_waiter(exc)
  File "/usr/local/anaconda3/lib/python3.11/asyncio/sslproto.py", line 366, in _wakeup_waiter
    self._waiter.set_exception(exc)
protocol: <asyncio.streams.StreamReaderProtocol object at 0x7ffad81e3810>
transport: <asyncio.sslproto._SSLProtocolTransport object at 0x7ffad843c530> (base_events.py:1771)
Traceback (most recent call last):
  File "/usr/local/anaconda3/lib/python3.11/asyncio/selector_events.py", line 222, in _accept_connection2
    await waiter
  File "/usr/local/anaconda3/lib/python3.11/asyncio/sslproto.py", line 575, in _on_handshake_complete
    raise handshake_exc
ConnectionResetError

However, this issue seems to appear only while using chromium.

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