fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
80.49k stars 12.74k forks source link

Will service registratioin close opened connection? #4166

Closed JobberRT closed 4 weeks ago

JobberRT commented 4 weeks ago

Bug Description

I got a similar problem like https://github.com/fatedier/frp/issues/4061 , server log and client log not giving useful information. But I notice there are some connection join and service registration log around.

So whether client service registraiton close the opened connection?

frpc Version

0.57

frps Version

0.57

System Architecture

linux/amd64

Configurations

example configuration from official website

Logs

No response

Steps to reproduce

  1. ...

Affected area

fatedier commented 4 weeks ago

I am not sure what your question is, but when an exception occurs between the client and the server, all connections associated with this client will be closed.

JobberRT commented 4 weeks ago

@fatedier Thanks for reply, Sorry for the confuse, and I've found the reason:

I'm using LEDE, and found the code for Service Registration Interval :

https://github.com/coolsnowwolf/luci/blob/8c6da73f0f012a2a00c5e51adff77f2f1e10a713/applications/luci-app-frpc/root/etc/init.d/frp#L153-L160

This time param is the registration interval that I talk about, and it's a restart action, and, of course it will close the opened connection.

A bit of misunderstanding for this action, I thought it was some kind of keep-alive method