Skip to content

session shutdown & EOF #5081

@Hi-Jiang-a11y

Description

@Hi-Jiang-a11y

Bug Description

when i start my frpc, sometimes it reports login to the server failed: session shutdown and sometimes login to the server failed: EOF
my frp version on both client and server is 0.65.0

frpc Version

0.65.0

frps Version

0.65.0

System Architecture

frps: Linux/amd64 frpc: Linux/amd64

Configurations

frps.toml:

bindAddr = "0.0.0.0"

bindPort = 7000

vhostHTTPPort = 80

vhostHTTPSPort = 443

webServer.addr = "0.0.0.0"

webServer.port = 7500

webServer.user = "xxx"

webServer.password = "xxx"

auth.method = "token"

auth.token = "xxx"

detailedErrorsToClient = true

frpc.toml:

serverAddr = "xxx"

serverPort = 7000

transport.protocol = "tcp"

auth.method = "token"

auth.token = "xxx"

log.to = "xxx"

log.level = "debug"

Logs

2025-11-29 14:22:50.102 [I] [sub/root.go:149] start frpc service for config file [frpc.toml]
2025-11-29 14:22:50.102 [I] [client/service.go:325] try to connect to server...
2025-11-29 14:22:55.104 [W] [client/service.go:328] connect to server error: EOF
2025-11-29 14:22:55.104 [I] [sub/root.go:167] frpc service for config file [frpc.toml] stopped
login to the server failed: EOF. With loginFailExit enabled, no additional retries will be attempted

and sometimes this:

2025-11-29 14:23:26.564 [I] [sub/root.go:149] start frpc service for config file [frpc.toml]
2025-11-29 14:23:26.564 [I] [client/service.go:325] try to connect to server...
2025-11-29 14:23:31.566 [W] [client/service.go:328] connect to server error: session shutdown
2025-11-29 14:23:31.566 [I] [sub/root.go:167] frpc service for config file [frpc.toml] stopped
login to the server failed: session shutdown. With loginFailExit enabled, no additional retries will be attempted

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions