Commit Graph

30 Commits

Author SHA1 Message Date
Matt Joiner eb9c032f2b
Start a UDP server implementation 2022-12-07 10:45:12 +11:00
Matt Joiner 6cb65f4ecf Don't dial in UDP tracking
This could fix an issue where tracker addresses change, but we're already bound to a particular address and so fail to receive any more responses.
It should also make it easier to share UDP sockets between UDP tracker clients, although that's not currently implemented.
2021-11-22 18:11:09 +11:00
Matt Joiner 42a2fb445f Rearrange some tracker tests and files 2021-06-22 23:32:27 +10:00
Matt Joiner 2ddddad6f7 Update test tracker urls 2021-06-22 22:45:56 +10:00
Matt Joiner 98630dfc3d Fix tracker test timeouts 2021-06-22 22:45:50 +10:00
Matt Joiner 333c878d2b Rewrite UDP tracker client 2021-06-22 22:36:43 +10:00
Matt Joiner c714cb6992 Fix some go vet warnings 2021-02-03 19:42:46 +11:00
Matt Joiner 9224303c1e Update all imports of dht to v2 2019-08-10 18:46:07 +10:00
Matt Joiner cd06ab16ac tracker: Fix network error handling in unit test 2019-01-08 19:21:15 +11:00
Matt Joiner 2789a4ff39 tracker: Fix some comments 2018-11-28 12:02:25 +11:00
Matt Joiner 3e3f2e4128 tracker: Add Announce.Context
Use it to rewrite a test that fails with recent go versions due to logging after test completion.
2018-11-28 12:02:12 +11:00
Matt Joiner 8f7408b1f9 IPv6 tracker support 2018-02-19 16:19:18 +11:00
Matt Joiner ce78248ba1 Update test trackers 2018-02-12 23:49:05 +11:00
Matt Joiner 57216bd299 Standardize on krpc types, and extend PEX message type for IPv6 2018-02-11 15:13:00 +11:00
Matt Joiner 2f616b9d8b megacheck and staticcheck fixes 2018-01-06 16:53:40 +11:00
Denis Kuzmenok 455a414204 adding http user-agent setters and usage 2017-12-28 10:47:51 +02:00
themihai 6ab65a49a8 feat(config): Allows the torrent client to customise the client identity and connection config 2017-11-07 20:14:13 +02:00
Matt Joiner 054ff25f7c Add CircleCI 2.0 turd
Adds tests for https://github.com/anacrolix/utp/issues/24, and mobile on the master branch. The UDP tracker test uses udp4 because of some bad behaviour on CircleCI.
2017-08-27 02:10:17 +10:00
Matt Joiner 3602d90b65 gofmt simplify 2016-11-22 14:01:09 +11:00
Matt Joiner c5e0c806ea tracker: Skip any net errors to third party trackers 2016-05-23 09:29:14 +10:00
Matt Joiner d5d3d9f623 tracker: Skip DNS error in UDP test 2016-05-07 18:17:40 +10:00
Matt Joiner f04af72757 tracker: Shoehorn old client implementations into new tracker Announce interface 2016-02-07 18:06:13 +11:00
Matt Joiner b10c992171 Test announcing to third party servers shouldn't fail if none respond 2015-11-13 23:36:38 +11:00
Matt Joiner 12722754e6 Some slow tracker tests can be Parallel 2015-10-04 19:58:23 +11:00
Matt Joiner 1db00a54f0 Redo the compact peer types 2015-08-17 19:52:47 +10:00
Matt Joiner abdf1f049f dht: Support IPv6 compact peers 2015-08-06 09:01:38 +10:00
Matt Joiner c735370f9b tracker_test: Check for the error string instead of the type
The type changes from Go 1.4->1.5, and it's not worth tearing it apart.
2015-08-02 14:57:28 +10:00
Matt Joiner 5f7ad4c769 Merge all the tracker packages, why would anyone want them separately? 2015-03-27 15:12:15 +11:00
Matt Joiner 843c954c09 Implementing UDP tracker in its own module 2013-11-07 01:55:29 +11:00
Matt Joiner b499ab3619 Begin on UDP trackers 2013-11-05 00:04:14 +11:00