You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When HTTPS is enabled (by providing certificate and key files), static content is served correctly; however, WebSocket connections fail. Testing with a C# Watson WebSocket client produces the error:
Traceback (most recent call last):
File "adafruit_httpserver/server.py", line 476, in poll
OSError: -30464
Traceback (most recent call last):
File "code.py", line 101, in <module>
File "asyncio/core.py", line 317, in run
File "asyncio/core.py", line 276, in run_until_complete
File "asyncio/core.py", line 261, in run_until_complete
File "code.py", line 98, in main
File "asyncio/funcs.py", line 162, in gather
File "asyncio/core.py", line 261, in run_until_complete
File "code.py", line 39, in handle_http_requests
File "adafruit_httpserver/server.py", line 528, in poll
File "adafruit_httpserver/server.py", line 476, in poll
OSError: -30464
This issue disappears when HTTPS is disabled (i.e., when the certificate-related parameters are commented out).
server=Server(
pool,
# https=True,# certfile="cert.pem",# keyfile="key.pem",debug=True)
Expected Behavior:
WebSocket connections should be established successfully regardless of whether HTTPS is enabled, while still serving static content securely.
Actual Behavior:
With HTTPS enabled, WebSocket connections fail with the error OSError: -30464 during the polling process.
Additional Context:
The issue appears to be isolated to WebSocket functionality when using HTTPS.
The rest of the HTTP functionality (e.g., serving static content) is unaffected.
This behavior was reproduced on a CircuitPython environment using the adafruit_httpserver library.
The text was updated successfully, but these errors were encountered:
CircuitPython version and board name
Code/REPL
Behavior
When HTTPS is enabled (by providing certificate and key files), static content is served correctly; however, WebSocket connections fail. Testing with a C# Watson WebSocket client produces the error:
This issue disappears when HTTPS is disabled (i.e., when the certificate-related parameters are commented out).
Expected Behavior:
WebSocket connections should be established successfully regardless of whether HTTPS is enabled, while still serving static content securely.
Actual Behavior:
With HTTPS enabled, WebSocket connections fail with the error
OSError: -30464
during the polling process.Additional Context:
The text was updated successfully, but these errors were encountered: