erebe / wstunnel

Tunnel all your traffic over Websocket or HTTP2 - Bypass firewalls/DPI - Static binary available
Other
3.17k stars 287 forks source link

It stops when the number of requests increases #249

Closed V2RVPNShop closed 1 month ago

V2RVPNShop commented 1 month ago

When the number of requests increases, the packet loss increases. When the number of requests gets too high, it stops and I have to restart the service. I restart the service every 5 minutes (using Crontab), the problem is solved to some extent.

erebe commented 1 month ago

Please use the template and provide more information regarding your setup.

V2RVPNShop commented 1 month ago

This is how I use wstunnel: wstunnel server wss://[::]:8443 wstunnel client -L tcp://0.0.0.0:80:localhost:80 -L tcp://0.0.0.0:443:localhost:443 -L tcp://0.0.0.0:512:localhost:512 -L tcp://0.0.0.0:530:localhost:530 wss://sub.domain.ir:8443

After a while, when the number of connections on a port increases, that port will go out of listening mode. And I need to restart the wstunnel service. WSTunnel I also used the reverse mode and I still have this problem.

erebe commented 1 month ago

I thanks for providing more information. Would you mind testing this pre-release and let me know if it fix your issue https://github.com/erebe/wstunnel/releases/tag/v9.2.5

Most likely what is happening is that accepting new connection is too slow, and it returns an error, which before was exiting the listening loop. If it is the case, it means your server is under-sized for the load you want it to manage.

Anyway let me know if it fix the issue, or a least you should see an error message now

V2RVPNShop commented 1 month ago

Hi, The problem is solved in version 9.2.5. Thank you very much for your attention and quick fix.