Comments (18)
出现这种错误只要打印错误日志方便排查就行,查错的人可以选择逐步调整nofile直至一个合适的值,每次都崩溃太不友好了
from ipt2socks.
..nofile limit 调大点不就行了。
from ipt2socks.
..nofile limit 调大点不就行了。
意思是这种错误没必要直接崩溃退出,等连接变少了就可以恢复正常,现在是程序退出了,每次都有手工重启
from ipt2socks.
也有道理,有时间改一下。
from ipt2socks.
看了一下代码,无论是connect出错、send出错和recv出错,都会直接退出evloop,这样不够友好,因为网络出错是常有的事,错误处理可以考虑鲁棒一点
from ipt2socks.
你看错了吧,connect/send/recv 报错不会退出 evloop。。
from ipt2socks.
都直接tcp_context_release了,里面直接ev_io_stop
from ipt2socks.
大哥,ev_io_stop/start 操作的是 watcher。别搞笑
from ipt2socks.
去看看 libev 文档吧
from ipt2socks.
原来这样,是我看错了
from ipt2socks.
退出进程只有在 create_socket/create_pipe/run_as_user 以及一些关键的 setsockopt 时发生。要是随便一个网络错误就退出,那还玩个蛋蛋。。
from ipt2socks.
怎么可以先屏蔽掉Too many open files的错误让它不退出?因为每次都要上路由器重启程序。我只要知道它nofile不够就行
from ipt2socks.
netutils.c 里面的exit()去掉试试。
from ipt2socks.
怎么可以先屏蔽掉Too many open files的错误让它不退出?因为每次都要上路由器重启程序。我只要知道它nofile不够就行
systemd service 启动, Restart=Always
from ipt2socks.
怎么可以先屏蔽掉Too many open files的错误让它不退出?因为每次都要上路由器重启程序。我只要知道它nofile不够就行
systemd service 启动,
Restart=Always
路由器一般都不用systemd
from ipt2socks.
怎么可以先屏蔽掉Too many open files的错误让它不退出?因为每次都要上路由器重启程序。我只要知道它nofile不够就行
systemd service 启动,
Restart=Always
路由器一般都不用systemd
#!/bin/bash
while true ; do
pidof ipt2socks > /dev/null
if [[ $? -ne 0 ]] ; then
service ipt2socks restart
fi
sleep 10
done
from ipt2socks.
讨论方向有点偏了。周末我把那几条“没必要”的exit()语句去掉就行了。
from ipt2socks.
见1.1.3版本。
from ipt2socks.
Related Issues (20)
- 是否能承受高负载转发 HOT 1
- How can I forward ipt2socks TPROXY port to a subnet? HOT 2
- 建议增加dns to socks5这里的功能 HOT 3
- linux
- 请各位大佬帮我看看为什么用ipt2socks转UDP出错,xray转就没问题 HOT 5
- '-b' 参数不起作用 HOT 4
- Can't forward UDP to a sub-net with tproxy HOT 4
- 编译环境有问题 HOT 8
- 可否加入代理链的支持? HOT 1
- 能否加入 socks4 协议支持? HOT 8
- [Question] How can I forward traffic across network namespaces with ipt2socks? HOT 3
- 在speedtest.net测试单线程峰值速度更高 HOT 28
- Is "really" transparent proxy? HOT 3
- ERROR: package/feeds/helloworld/ipt2socks failed to build. HOT 4
- nftables全局代理配置寻求帮助 HOT 16
- 为什么ipt2socks需要udp 443的端口监听呢? HOT 9
- 当socks服务开在本地服务器时,则会陷入socks循环请求(iptables规则死循环) HOT 3
- UDP报文经过代理后目标IP和端口都变成0 (上游socks5的udp实现不正确) HOT 14
- ERR: [udp_socks5_recv_tcpmessage_cb] recv unknown msg from socks5 server, release ctx HOT 16
- 使用TPROXY代理UDP时,上级的SOCKSIP只有为127.0.0.1时能够正常工作 HOT 8
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 ipt2socks.