Module: Girl

Defined in:
lib/girl/proxy.rb,
lib/girl/dns.rb,
lib/girl/head.rb,
lib/girl/proxyd.rb,
lib/girl/version.rb,
lib/girl/proxy_worker.rb,
lib/girl/proxyd_worker.rb

Overview

Girl::Proxyd - 远端

Defined Under Namespace

Modules: Dns Classes: Proxy, ProxyWorker, Proxyd, ProxydWorker

Constant Summary collapse

BACKLOG =

听队列大小,满后掉SYN包

512
RLIMIT =

sock数上限

1024
READ_SIZE =

一次读多少

4 * 1024 * 1024
WBUFF_LIMIT =

写前上限,超过上限暂停读

30 * 1024 * 1024
RESUME_BELOW =

降到多少以下恢复读

WBUFF_LIMIT / 2
CLOSE_ABOVE =

超过多少强制关闭

WBUFF_LIMIT * 3
HEARTBEAT_INTERVAL =

心跳间隔

10
CHECK_TRAFF_INTERVAL =

检查今天是否是流量计数重置日间隔

3600
HTTP_OK =
"HTTP/1.1 200 OK\r\n\r\n"
RESERVED_ROUTE =
<<EOF
0.0.0.0/8
10.0.0.0/8
127.0.0.0/8
169.254.0.0/16
172.16.0.0/12
192.168.0.0/16
255.255.255.255/32
EOF
VERSION =
'9.1.2'.freeze