alireza0 / x-ui

xray panel supporting multi-protocol multi-user expire day & traffic (Vmess & Vless & Trojan & Shadowsocks)
https://t.me/XrayUI
GNU General Public License v3.0
3.17k stars 490 forks source link

gRPC keep-alive #921

Closed The-1818 closed 4 months ago

The-1818 commented 9 months ago

Hello community, hope you're doing well. The free Cloudflare tier has a limitation where all gRPC streams are automatically disconnected after 100 seconds of inactivity. This causes problems with applications like SSH that need to maintain a connection to the server for long periods of time without continuously transmitting data. Any ideas how to deal with this problem?

The-1818 commented 9 months ago

I've found what could be changed, does anybody know where I can put these settings into existing inbound on the panel?

"streamSettings": {
  "network": "grpc",
  "security": "tls",
    "grpcSettings": {
      "serviceName": "",
      "multiMode": false,
      "idle_timeout": 60,
      "initial_windows_size": 35536,
      "permit_without_stream": true
    }
}