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
First of all, thank you for using your valuable experience to see my request!
I want to use two threads to handle reads and writes separately, but I haven't found any good methods other than using read write locks. The read write lock, due to its ability to block, has not yet achieved the goal of simultaneously reading and writing separately.
Is there any solution?
The text was updated successfully, but these errors were encountered:
This could be achieved by tokio::select(readfuture, writechannelrecvfuture), but the solution sucks. Ultimately, I believe the tun driver needs to address this. this is such a big problem, I am surprised it's not addressed from day one.
First of all, thank you for using your valuable experience to see my request!
I want to use two threads to handle reads and writes separately, but I haven't found any good methods other than using read write locks. The read write lock, due to its ability to block, has not yet achieved the goal of simultaneously reading and writing separately.
Is there any solution?
The text was updated successfully, but these errors were encountered: