Comments (5)
You should increase the max file descriptor limit by
ulimit -n 51200
here is more optimizations for your server https://github.com/shadowsocks/shadowsocks/wiki/Optimizing-Shadowsocks
from realm.
It seems there was no more available port to be allocated, the OS was complaining. I have to point out that there is a potential resource leak in the current code, for which I am responsible.
The udp module was initially created by me a few months ago, to solve #26. It is not so well designed(I supposed that people seldom use this program to forward udp, so I tried to minimize the overhead..). After the merge(#27), it just works.
There is only one global timer, which finally clears states and close fds. If the relay continues to receive UDP packets, the cleaning up logic will never be executed, thus leading to a resource leak. Morever, the hardcoded TIMEOUT
value is 15min, making the problem even more severe.
The solution is simple: set timeout for each socket & set a proper TIMEOUT
value.
from realm.
Thanks for the reply, I'll try it!
from realm.
Hi, the next one crashes with the following error, is there any solution?
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 98, kind: AddrInUse, message: "Address already in use" }', src/udp.rs:29:88
from realm.
I tried to fix it by tweaking the timeout value, but I wasn't able to set the timeout for every single socket, thank you!
from realm.
Related Issues (20)
- tls can add specify encryption suite?
- 请问哪个参数支持故障转移 HOT 2
- realm + wireguard HOT 1
- Request to set default tcp keepalive interval HOT 6
- 通过realm转发后无法实现NAT1 HOT 11
- realm+dnsproxy DOH HOT 2
- TLS SNI proxy HOT 5
- 配置文件运行失败 HOT 1
- DNS resolve runs when not required HOT 2
- 佬,单端口转发规则和端口段转发规则好像不能写一块。 HOT 1
- 对于单端口和端口段混合+多IP的需求,一个配置文件可以解决吗? HOT 1
- ipv6 Address in use (os error 98) HOT 6
- 请问支持配置文件的热重载吗? HOT 1
- 一个新的内存分配库 ferroc https://zhuanlan.zhihu.com/p/686176896
- realm有多线程优化吗?在一台多核机器上,u单核性能比较差,经常吃满一个cpu,其他cpu好像不怎么动 HOT 7
- realm新配置如何设置大范围的端口转发呢? HOT 1
- 转发 https 问题求帮助 HOT 1
- 更新版本能否加个更新日志
- 关于母鸡转发端口,小鸡安装的宝塔无法获取来源IP HOT 1
- 请问中转没有加密的话会不会导致ip被墙啊
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm.