-
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
Configuration option to allow IP fragmentation on outbound UDP sockets in ssserver #1780
Comments
It is Ok. I would prefer |
Sounds good, thanks. I should be able to submit something end of this week / start of next week. |
Waiting for hickory-dns' new release. They said it could be released in early December, but obviously no.. |
Thanks @zonyitoo ! I could see that there is a release by hickory-dns recently - https://crates.io/crates/hickory-resolver |
We are waiting for its v0.25 release. |
Hello! I have a use case where outbound UDP traffic from ssserver sometimes needs to traverse a network with a smaller MTU. Unfortunately I don't have control over the network or the application sending the traffic.
I saw that per previous issues on this project, IP fragmentation was disabled to improve performance. For my use case, it's preferable to allow IP fragmentation / accept the performance overhead.
I tested that by commenting out the following lines, UDP traffic was fragmented as expected:
shadowsocks-rust/crates/shadowsocks/src/net/sys/unix/linux/mod.rs
Lines 313 to 315 in e791f23
What do you think about adding a new configuration option in ssserver like
allow_outbound_udp_fragmentation
? The default will be false, keeping the current behavior. Whenallow_outbound_udp_fragmentation = true
,set_disable_ip_fragmentation
will be skipped. If that sounds OK, I'll be happy to submit a patch.The text was updated successfully, but these errors were encountered: