Commit Graph

456 Commits

Author SHA1 Message Date
Jeromy 2d0c57e7d3 add env var for overriding muxer prefs 2016-05-05 20:38:17 -07:00
Jeromy Johnson 0436764ffa Merge pull request #44 from ipfs/fix/dial-read-deadline
add a read deadline for the multistream select on dial
2016-04-27 15:52:44 -07:00
Jeromy b0ad207270 rewrite all package paths to dvcs 2016-04-27 12:59:04 -07:00
Jeromy d8a6d25b8c add a read deadline for the multistream select on dial 2016-04-27 12:17:08 -07:00
Jeromy 15b28dc0ce recursive dependency update of utp lib 2016-04-27 10:12:51 -07:00
Jeromy Johnson bd600922d3 Merge pull request #36 from ipfs/filter-ip6
Fix address filtering for /ip6, add tests
2016-04-12 20:46:34 -07:00
Jeromy 4f82ae5e62 move some deps out as gx packages 2016-04-11 23:24:32 -07:00
Jeromy 261b113530 add a test with connections timing out 2016-04-11 11:06:22 -07:00
Lars Gierth 2b226b9b5a Fix address filtering for /ip6, add tests
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-10 23:50:39 -07:00
Jeromy e123a79f92 make test smaller for osx 2016-04-10 11:32:17 -07:00
Jeromy d3a90434f1 add test to show concurrency of dials 2016-04-10 11:05:53 -07:00
Jeromy 9d44390084 address feedback from CR 2016-04-10 10:21:25 -07:00
Jeromy b938ab9ab6 Handle incoming conns in their own goroutines
Doing the multistream negotiation in sync causes hanging issues.
This commit accepts transport connections and starts the negotiation
in a separate goroutine, sending it down a channel when its ready.
2016-04-09 23:02:23 -07:00
Jeromy 0d2ae7b73f don't break listener on failed msmux negotiation 2016-04-06 18:41:59 -07:00
Jeromy cb974e87c1 rename protocols after discussion 2016-04-06 13:06:05 -07:00
Jeromy 9c68f44a14 version multistream protocol tags 2016-04-06 12:14:06 -07:00
Jeromy 60d096098e use different protocol tag for unencrypted transport 2016-04-06 11:32:17 -07:00
Jeromy 200d7a872f add multistream select to select which crypto to use 2016-04-06 11:18:03 -07:00
Jeromy c7cc7482e3 update utp lib 2016-03-29 18:38:24 -07:00
Jeromy 90a6977bd9 fix accidental find and replace fail 2016-03-29 18:11:59 -07:00
Jeromy ec85e0bbdf bump yamux backlog setting way up 2016-03-08 17:40:52 -08:00
Jeromy 955ae93a4b switch to new version of go-stream-muxer 2016-03-07 22:43:13 -08:00
Jeromy 5ec1f553f0 fix fallback code and add a few new tests 2016-03-04 16:16:58 -08:00
Jeromy 1b84a1cc9d Add fallback dialer
Previously we were unable to dial on a given transport if there were no
listener addresses defined for that. This meant that most people couldnt
use utp (as they had no utp listener transport to dial from).
2016-03-04 09:27:52 -08:00
Jeromy 648902840d use multiaddr format to do validation of addresses 2016-03-03 14:56:00 -08:00
Jeromy 7b48e5bc4d update version of go-multiaddr 2016-03-03 13:03:24 -08:00
Jeromy 7d1706f7ab make mdns service tag conform to standards 2016-03-01 23:24:29 -08:00
Jeromy 1deeb429fb record ping latencies in peerstore 2016-02-21 09:51:43 -08:00
Jeromy e4934f1014 add remote multiaddr from active connection to peerstore 2016-02-16 21:25:00 -08:00
Jeromy 98c7ca0d86 finish deps rewrite 2016-02-16 17:02:00 -08:00
Jeromy c14ec1c4dc change listener errors to warnings 2016-02-13 16:22:20 -08:00
Jeromy 8d928334b5 make PeerInfo loggable 2016-02-10 09:32:01 -08:00
Jeromy 62af652294 update to utp code from master of go-ipfs 2016-01-30 17:12:33 -08:00
Randall Leeds f580951130 Leave overflow logic to go-msgio
go-msgio implements the message length limit (currently 8MB), so the
secio reader can get away without re-implementing this logic.

Instead, the reader lets go-msgio allocate a buffer when the output
buffer is too small to hold the incoming message. This buffer is kept
and drained into the output buffer(s) of Read() calls and released back
to the msgio instance once it is fully drained.

License: MIT
Signed-off-by: Randall Leeds <randall@bleeds.info>
2016-01-29 17:45:17 -08:00
Jeromy c441a14b69 add utp to have feature parity with go-ipfs 2016-01-05 14:24:02 -08:00
Jeromy ada8212cac path rewrites 2016-01-04 05:45:58 -08:00
Jeromy 451945c2c5 vendor fixing 2015-12-11 11:23:29 -08:00
Jeromy d91b419ecf WIP 2015-12-06 23:11:16 -08:00
Jeromy 1c6efef4f8 vendor in go-detect-race 2015-11-23 17:04:47 -08:00
Jeromy dafa3bf917 make new stream calls accept a context 2015-11-19 16:20:59 -08:00
Jeromy 9d40a0af19 migrate to gx namespace 2015-11-18 16:11:24 -08:00
Jeromy fb31f44627 remove prometheus dep 2015-11-16 17:25:35 -08:00
Jeromy 8acc21e88d Vendor in go-peerstream 2015-11-16 16:47:49 -08:00
Jeromy a9de494fe3 update multiaddr-filter 2015-11-16 16:41:23 -08:00
Jeromy 52a0925681 vendor go-ipfs-util 2015-11-15 21:15:23 -08:00
Jeromy ebd0a2dfb2 remove multiple multihash deps 2015-11-15 21:04:44 -08:00
Jeromy 4a64aae7c6 move testutil up 2015-11-15 19:59:59 -08:00
Jeromy 0c73722a91 vendor in notifier 2015-11-15 18:42:27 -08:00
Jeromy d4b42f8e45 fixes for sha3 2015-11-15 18:28:35 -08:00
Jeromy 8f79df770e vendor in gogo protobuf 2015-11-15 17:54:19 -08:00
Jeromy f3d96ac5db use only gogo protobuf 2015-11-15 17:44:56 -08:00
Jeromy 216db146ca more vendoring 2015-11-15 11:56:01 -08:00
Jeromy e142795053 remove dependency on key 2015-11-13 16:18:52 -08:00
Jeromy 51fd99e363 extract from 0.4.0 2015-11-11 16:19:51 -08:00
Juan Batiz-Benet 2392434b6d rewrote imports to p2p 2015-09-30 19:24:00 -04:00
Juan Batiz-Benet 885d86219e move to p2p dir 2015-09-30 18:42:55 -04:00