forked from ipfs/kubo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before, we could end up (e.g.): 1. Creating two connections (both sides connect at the same time). 2. Try to test with the first one. 3. The first connection dies. 4. Get a stream reset and think that the other side doesn't support the DHT protocol. We tried to fix this by checking for an EOF. Unfortunately, reset streams don't return EOFs. This commit also simplifies peer tracking (and saves a bit of memory). fixes ipfs#99
- Loading branch information
Showing
2 changed files
with
41 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters