Skip to content

running out of ports when SkyWalking server unavailable #608

Description

@evanyang85

Hello,

We have found some issue on our API after the SkyWalking server unavailable:
Exception: One or more errors occurred. (An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
after analysis the source code, we found the root cause:

when creating GrpcChannel, use default GrpcChannelOptions
DisposeHttpClient property in this object default vaule is false
_channel = GrpcChannel.ForAddress(_server);

when shutdown the channel on ConnectAsync
there are no any implementation for ShutdownAsync on GrpcChannel
only empty virtual method there, see ShutdownAsyncCore
when assign new GrpcChannel to _channel, _channel is not shutdown and no release by GC in some scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions