WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

running out of ports when SkyWalking server unavailable #608

@evanyang85

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions