Skip to content

[Backport-1.6] ER/T half-close logic is incorrect #3781

@plorenz

Description

@plorenz

Backport #3526 from 2.0 to 1.6

  1. ReadPayload should not block in write
  2. ReadPayload should only return ErrPeerClosed if the write is closed, not the inverse. The error nil check is switched.
  3. ReadPayload should return io.EOF if the write side is still open, not ErrPeerClosed. ErrPeerClosed indicates that both sides of the connection are closed.

Metadata

Metadata

Assignees

Labels

routerIssue relates to the router

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions