Skip to content

Server blocks when a connection is opened with no request sent. #21

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

Closed
paul-1 opened this issue Oct 26, 2022 · 0 comments · Fixed by #25
Closed

Server blocks when a connection is opened with no request sent. #21

paul-1 opened this issue Oct 26, 2022 · 0 comments · Fixed by #25

Comments

@paul-1
Copy link
Contributor

paul-1 commented Oct 26, 2022

Using Circuitpython 8.0.0-b3 with socket reuse patch, on a picoW.

Firefox: Everything works fine.
Chrome: Socket/connection is left in a blocking state. It appears that chrome is reopening a connection in anticipation of the next request.

This is the call that is blocking, when there are no bytes to receive.

length, _ = conn.recvfrom_into(self._buffer)

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

Successfully merging a pull request may close this issue.

1 participant