-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
take arbitrary IO for udp proxy #1641
Conversation
Why was that necessary? |
We need it to be SocketAddr when passing it to the underlying udp send |
What was the key issue of the current master implementation that blocked you from passing |
There is no issue passing a SocketAddr, but we can't and shouldn't pass IntoSocketAddrs into an abstract udp up, which is not always a tokio udpsocket |
just realised it's a bit tricky to have the abstract io to be compatible with the raw socket operations. maybe I should separate two kinds of io and fail all the raw socket operation on the abstract one and give the control of that back to the author of which |
Please resolve all the CI failures. |
Sure. There are still more to do. Will update soon. |
@zonyitoo this should be ready for review now |
I was wondering another solution:
|
I could apply my ideas on your branch, if you allowed. |
yeah of course, feel free to update |
@ibigbug Please set your branch to be "allow editable by maintainer". |
@zonyitoo i odn't see that option, maybe it's from a forked repo? |
|
https://github.com/orgs/community/discussions/5634 seems it doesn't work for org |
I may have to modify it on the master branch after merging this PR. |
#1608