Skip to content

uasyncio: StreamReader: Separate "poll socket" vs "I/O socket". - #227

Closed
pfalcon wants to merge 1 commit into
micropython:masterfrom
pfalcon:uasyncio-poll-vs-io
Closed

pfalcon wants to merge 1 commit into
micropython:masterfrom
pfalcon:uasyncio-poll-vs-io

Conversation

@pfalcon

@pfalcon pfalcon commented Nov 3, 2017

Copy link
Copy Markdown
Contributor

Poll socket is what's passed to uselect.poll(), while I/O socket is what's
used for .read(). This is a workaround of the issue that MicroPython doesn't
support proxying poll functionality for stream wrappers (like SSL, websocket,
etc.)
This issue is tracked as micropython/micropython#3394

It may be that it's more efficient to apply such a workaround on uasyncio
level rather than implementing full solution of uPy side.

Poll socket is what's passed to uselect.poll(), while I/O socket is what's
used for .read(). This is a workaround of the issue that MicroPython doesn't
support proxying poll functionality for stream wrappers (like SSL, websocket,
etc.)
This issue is tracked as micropython/micropython#3394

It may be that it's more efficient to apply such a workaround on uasyncio
level rather than implementing full solution of uPy side.
@pfalcon

pfalcon commented Nov 5, 2017

Copy link
Copy Markdown
Contributor Author

Merged.

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 this pull request may close these issues.

1 participant