Skip to content

Document Server state machine + clean up edge cases#202

Draft
HDegroote wants to merge 1 commit intomainfrom
server-lifecycle
Draft

Document Server state machine + clean up edge cases#202
HDegroote wants to merge 1 commit intomainfrom
server-lifecycle

Conversation

@HDegroote
Copy link
Contributor

The existing logic didn't take into account the edge case that a connection can exist for a while in the server before being passed to the DHT itself (notably, during the handshake, and during the holepunching while the connection is still relayed).

I'm pretty sure this partially explains the Hyperswarm lifecycle issue documented here: https://github.com/holepunchto/hyperswarm/blob/d8eab5249ac76076a4257e2cdcad9d086f2c7d61/index.js#L291-L293

@HDegroote
Copy link
Contributor Author

Marked as draft because I'm unsure on the cleanest solution for some cases, indicated with TODO's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant