Skip to content

Client doesn't reconnect after EOF #147

Open
@pjcdawkins

Description

@pjcdawkins

sse/client.go

Line 217 in c6d5381

erChan <- nil

It seems on EOF, the error is ignored and the read loop silently finishes, without an error, so backoff.RetryNotify does not retry.

If this EOF check is removed (so err is returned unconditionally), the client behaves as I would expect: it reconnects after an EOF [edit: currently unsure about this].

What is the intended/expected behavior here?

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