2
0
mirror of synced 2025-02-23 14:18:13 +00:00

3497 Commits

Author SHA1 Message Date
Matt Joiner
81e806a3d9
Run Go CI test job on macos and windows 2023-05-28 00:41:34 +10:00
Marco Vidonis
e7087fde56
Add WebRTC ICE servers config (#824)
* add ICEServers config

* remove unnecessary check
2023-05-27 20:27:24 +10:00
Matt Joiner
1c1f47555b
Fix ClientConfig.Logger.SetHandlers being clobbered
Fixes https://github.com/anacrolix/torrent/issues/837.
2023-05-24 11:58:57 +10:00
Matt Joiner
f13f4d9a98
Remove PEX todo 2023-05-23 21:25:36 +10:00
Matt Joiner
b18e824a6b
go1.19 compatibility 2023-05-23 20:55:30 +10:00
Matt Joiner
a8ab0baec8
Include holepunch message protocol family in metrics 2023-05-22 15:28:28 +10:00
Matt Joiner
97488efed7
Add holepunch message fuzzing 2023-05-22 15:27:06 +10:00
Matt Joiner
20743ce0b7
Add a bunch of holepunch metrics 2023-05-21 19:33:10 +10:00
Matt Joiner
17930ef460
Print peer ID in ASCII-only 2023-05-21 19:30:39 +10:00
Matt Joiner
60db110439
Fix panic logging unknown holepunch error code 2023-05-21 19:29:35 +10:00
Matt Joiner
5fa3710d7f
Report ltep extensions in status output 2023-05-19 17:10:03 +10:00
Matt Joiner
a491fdccbc
Move PeerClientName and PeerExtensionIDs to PeerConn 2023-05-19 14:41:27 +10:00
Pavel Tatarskiy
e6a38b1cd1
fixes anacrolix/torrent#795 (#807) 2023-05-19 14:23:34 +10:00
Matt Joiner
56c8b396f5
Add doc comment for Torrent.BytesMissing
Fixes https://github.com/anacrolix/torrent/issues/828.
2023-05-19 14:18:24 +10:00
Matt Joiner
8ac9ea890e
Don't panic if changing interest fills the write buffer
This was the old behaviour, years ago. I don't know why it's suddenly being triggered lately.
2023-05-19 14:09:27 +10:00
Matt Joiner
c3622dea3d
Fix TestSeedAfterDownloading when cgo is disabled 2023-05-19 12:33:54 +10:00
Matt Joiner
d27d1c809e
Skip test failures due to Go uTP implementation 2023-05-19 12:33:54 +10:00
Matt Joiner
11af55fa0b
Retry some utp tests on failure 2023-05-19 12:33:54 +10:00
Matt Joiner
cd3ab72272
Tweak logging 2023-05-18 21:25:58 +10:00
Matt Joiner
f45365fd98
Ignore dial rate limits for holepunch connects 2023-05-18 11:38:10 +10:00
Matt Joiner
6b18583a06
Add ClientConfig.DialRateLimiter, handle dial rate limiting errors 2023-05-18 10:41:51 +10:00
Matt Joiner
9352f6cf8e
Don't start another holepunch rendezvous if we're handling one 2023-05-18 10:26:00 +10:00
Matt Joiner
92bba56b87
Relax TestTcpSimultaneousOpen 2023-05-18 09:46:08 +10:00
Matt Joiner
5d4bbd8dda
Improve test assertion for Linux 2023-05-17 13:45:18 +10:00
Matt Joiner
9d32240942
Switch Go CI to go1.20 2023-05-17 12:26:34 +10:00
Matt Joiner
f643521f1d
Fix overflow in average download rate 2023-05-17 12:13:16 +10:00
Matt Joiner
5f2b09a818
Use netip.AddrPort in PEX code and filter unusable addrs much sooner 2023-05-16 17:55:53 +10:00
Matt Joiner
9be2500729
Include PeerConn prefix for log messages 2023-05-16 16:35:26 +10:00
Matt Joiner
3a92268f10
Handle more PeerRemoteAddr variants when calculating dial addr
This should fix https://github.com/anacrolix/torrent/issues/820.
2023-05-16 16:35:03 +10:00
Matt Joiner
044be4820f
gorond test files 2023-05-12 13:47:47 +10:00
Matt Joiner
0b6209062d
Add holepunching stats and tests 2023-05-12 13:47:24 +10:00
Matt Joiner
a11739a667
Attempt holepunch after initial dial fails 2023-05-11 13:03:54 +10:00
Matt Joiner
c8fd8884b1
Restore using just hex in peer extension expvar 2023-05-09 15:46:53 +10:00
Matt Joiner
20b437730d
Include count of peer conns in status 2023-05-09 15:46:53 +10:00
Matt Joiner
12db16c478
Drop peer request alloc reservations when peer is closed
Might fix a goroutine leak.
2023-05-09 15:46:53 +10:00
Matt Joiner
c202126a62
Add many more extension bit definitions 2023-05-09 15:46:53 +10:00
Matt Joiner
e9e21b9bb5
Add stats for connections that only occur due to holepunching 2023-05-09 15:46:52 +10:00
Matt Joiner
ba0b955f72
Remove bad half open count assertion 2023-05-09 15:46:52 +10:00
Matt Joiner
884b71ea6d
Add Client.Stats with ActiveHalfOpenAttempts 2023-05-09 15:46:52 +10:00
Matt Joiner
5a4456a7df
Fix race in TestUtpLocalPortIsReusable 2023-05-09 15:46:52 +10:00
Matt Joiner
0f2604e3e9
Support multiple ongoing half-open attempts 2023-05-09 15:46:52 +10:00
Matt Joiner
f3b61f09a8
Add internal panicif, check and nestedmaps packages
Fuckit I'm sick of reinventing the wheel.
2023-05-09 15:46:52 +10:00
Matt Joiner
5703f9b5eb
Locate target peer using dial addr when receiving a holepunch rendezvous 2023-05-09 15:46:51 +10:00
Matt Joiner
d1845bbede
go mod tidy 2023-05-09 15:45:52 +10:00
Matt Joiner
9624f6ff9c
Don't dial out TCP from the listen port 2023-05-09 15:45:52 +10:00
Matt Joiner
c0c7536caa
Add test showing that reusing TCP ports isn't a good idea 2023-05-09 15:45:52 +10:00
Matt Joiner
599846546e
Dial TCP with the listener's local addr 2023-05-09 15:45:52 +10:00
Matt Joiner
b290350ba2
Prefer outgoing connections from higher to lower peer IDs
I think it may have been wrong all this time.
2023-05-09 15:45:52 +10:00
Matt Joiner
16139e1168
Add more hole punching NOTES 2023-05-09 15:45:52 +10:00
Matt Joiner
267fab622d
Break PeerConn status into more lines and improve pex status 2023-05-09 15:45:52 +10:00