Skip to content

Only link delayed transport AFTER real transport has called transportReady() #1477

Description

@zhangkun83

There is no benefit of creating streams on a transport that has not called transportReady(), because they will be buffered anyway. Besides, transport connection may turn out to be a failure, which will fail the pending streams on it, spamming transient errors to the callers. Those streams, however, if created on a transport that has called transportReady(), would have a higher chance of success.

Proposed change: TransportSet calls setTransport on delayed transport in the transportReady() callback of the real transport.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions