shadowsocks / shadowsocks-libev

Bug-fix-only libev port of shadowsocks. Future development moved to shadowsocks-rust
https://github.com/shadowsocks/shadowsocks-rust
GNU General Public License v3.0
15.83k stars 5.69k forks source link

Fragmentation #1211

Closed xiaodoudou closed 7 years ago

xiaodoudou commented 7 years ago

Hi,

Since few days, I have some warning displayed on my log of ss-redir: Feb 7 09:57:00 ss-redir[791]: [udp] UDP server_recv_recvmsg fragmentation: File exists Feb 7 09:57:00 ss-redir[791]: [udp] UDP server_recv_recvmsg fragmentation: File exists Feb 7 09:57:02 ss-redir[791]: [udp] UDP server_recv_recvmsg fragmentation: File exists Feb 7 09:57:05 ss-redir[791]: [udp] UDP server_recv_recvmsg fragmentation: File exists Feb 7 09:57:10 ss-redir[791]: remote recv: Connection reset by peer Feb 7 09:57:10 ss-redir[791]: [udp] UDP server_recv_recvmsg fragmentation: Connection reset by peer Feb 7 09:57:13 ss-redir[791]: remote recv: Connection reset by peer

What version of shadowsocks-libev are you using?

3.0.0-1

What operating system are you using?

Client: Asus Merlin / Koolshare / Vertex 380.63_X7.2 SS 3.3.0 Server: Ubuntu 14.04.5 LTS or Ubuntu 16.04.1 LTS or Ubuntu 16.10

What did you do?

Nothing special, just seeing sometimes DNS queries are slow to be resolved so check the logs :)

What is your config in detail (with all sensitive info masked)?

Server side: { "server":"XXX.89.29.9", "local_address": "127.0.0.1", "local_port":1080, "timeout":300, "method":"rc4-md5", "mode":"tcp_and_udp", "fast_open": false, "server_port": "36067", "password": "XXXXXXXXX" }

Client side: { "server":"XXX.89.29.9", "server_port":36067, "local_port":3333, "password":"XXXXXXXXX", "timeout":600, "method":"rc4-md5" }

Did reduce my router MTU to 1472 but issues still remains.

Thank you, Cheers,

madeye commented 7 years ago

Try adding mtu:1500 to your config file.

xiaodoudou commented 7 years ago

Did try on server side, nothing change :-/

Will try on client side.

kimw commented 7 years ago

Maybe you need to upgrade ss-libev on both local & remote. Just maybe.

Earlier today, I got the problem same as you do.

xiaodoudou commented 7 years ago

upgrading local side did fix the issue.

Cheers