Skip to content

fix(daemon): log gRPC Send() errors instead of silencing them#4169

Open
hklcf wants to merge 1 commit into
SagerNet:testingfrom
hklcf:fix/grpc-send-errors
Open

fix(daemon): log gRPC Send() errors instead of silencing them#4169
hklcf wants to merge 1 commit into
SagerNet:testingfrom
hklcf:fix/grpc-send-errors

Conversation

@hklcf
Copy link
Copy Markdown

@hklcf hklcf commented May 23, 2026

Description

Multiple gRPC server streaming methods in \daemon/started_service.go\ silently ignore errors from \server.Send():

  • \StartNetworkQualityTest\ (line 1188)
  • \StartSTUNTest\ (line 1248)
  • \StartTailscalePing\ (line 1462)
  • \SubscribeTailscaleStatus\ (line 1330)

When the client disconnects or the stream breaks, \Send()\ fails silently, and the server continues processing with no visibility.

Fix

Log the error from \server.Send()\ and \provider.SubscribeTailscaleStatus()\ so that streaming failures are visible in logs.

Related Issue

Fixes #4164

StartNetworkQualityTest, StartSTUNTest, StartTailscalePing and
SubscribeTailscaleStatus methods had ignored errors from server.Send()
and provider.SubscribeTailscaleStatus. Log these errors so that
failures in streaming operations are visible.

Fixes SagerNet#4164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: gRPC streaming Send() errors silently ignored in multiple methods

1 participant