Skip to content

Conversation

jbaldwin
Copy link
Owner

This change adds a test to prove that duplicating a tcp::client allows you to read in one coroutine while writing in another. This does not allow you to read in two coroutines, the epoll_ctl_mod will still fail.

Closes #224

@jbaldwin jbaldwin self-assigned this Dec 20, 2023
@jbaldwin jbaldwin force-pushed the issue-224/tests-for-concurrent-polling-of-socket branch 13 times, most recently from c8ef82e to cdf632b Compare January 4, 2024 19:18
This change adds a test to prove that duplicating a tcp::client allows
you to read in one coroutine while writing in another. This does not
allow you to read in two coroutines, the epoll_ctl_mod will still fail.

Closes #224
@jbaldwin jbaldwin force-pushed the issue-224/tests-for-concurrent-polling-of-socket branch from cdf632b to dab7d9e Compare January 4, 2024 19:28
@jbaldwin jbaldwin merged commit 375263d into main Jan 4, 2024
@jbaldwin jbaldwin deleted the issue-224/tests-for-concurrent-polling-of-socket branch January 4, 2024 19:52
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.

Concurrent polling of coro::net::tcp_client is not safe
1 participant