Skip to content

Don't invoke on connection before _connectTask has completed successfully #2335

@bernardnormier

Description

@bernardnormier

We currently have this odd logic in ProtocolConnection.InvokeAsync, where when IsServer, we wait for the connect task to complete before performing the invocation. That's really a work-around for rare race condition where we accept a dispatch on an incoming connection before its connect task has completed.

Once we eliminate ProtocolConnection, we could for example await _connectTask at the beginning of _acceptRequeststTask in IceRpcProtocolConnection.

See #2241.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions