Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Conversation

kylecarbs
Copy link
Member

Found this edge-case while restarting my SaaS instance ~20 times.

@kylecarbs kylecarbs requested a review from deansheather August 11, 2021 00:02
@kylecarbs
Copy link
Member Author

Shoutout Dean for the wonderful logging that made finding this ezpz 🌈

wsnet/listen.go Outdated
@@ -143,7 +143,11 @@ func (l *listener) dial(ctx context.Context) (<-chan error, error) {
defer close(errCh)
for {
conn, err := session.Accept()
if errors.Is(err, io.EOF) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not mean the yamux session is permanently borked?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea you're right... debugging the error we're not checking now.

@kylecarbs kylecarbs changed the title fix: Continue accepting connections after yamux session EOFs fix: Continue attempting connections no matter what Aug 11, 2021
@kylecarbs kylecarbs merged commit 3ebd102 into master Aug 11, 2021
@kylecarbs kylecarbs deleted the yamux branch August 11, 2021 01:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy