Commit Graph

3524 Commits

Author SHA1 Message Date
guoguangwu 7036f221f4 chore: remove refs to deprecated io/ioutil 2023-07-10 00:20:13 +10:00
guoguangwu 20f5ddb4af chore: unnecessary use of fmt.Sprintf 2023-07-09 22:16:22 +10:00
Matt Joiner e88aae7642
Add sqlite storage build conditions to sqlite storage closed test
Should fix test build failure to build when CGO is disabled.
2023-06-27 11:36:54 +10:00
Matt Joiner 050e5cbab8
Fix error unmarshalling bad metainfo nodes field 2023-06-26 19:48:23 +10:00
Matt Joiner 8d527a8274
Test and fix closed sqlite storage panicking during piece hashing 2023-06-26 10:24:06 +10:00
Matt Joiner c28f3014ff
Fix UseSources panicking when sqlite storage is closed 2023-06-23 22:14:38 +10:00
Matt Joiner 3901c3144b
Log bad tracker URL error 2023-06-06 10:40:15 +10:00
Matt Joiner ac086bb3bd
Fix incorrect EOF when decoding some peer protocol message types
Hooray for pedantic fuzz tests. This was found through peer_protocol/FuzzDecoder, when I wrote a go-fuzz-all wrapper.

It probably never caused a problem in production, as EOF would be handled as stream termination anyway, but it isn't clean.
2023-05-29 19:01:01 +10:00
Matt Joiner 5380337f86
Reintroduce torrent-wide PEX throttling
https://github.com/anacrolix/torrent/discussions/836
2023-05-28 20:07:33 +10:00
Matt Joiner 98234f943f
Run torrentfs CI on macos 2023-05-28 16:28:50 +10:00
Matt Joiner 5efb4dd941
Attribute accepted connection to holepunching when connect message is late
Also perform holepunch metric adjustments sooner to reduce timing issues in tests.
2023-05-28 13:53:22 +10:00
Matt Joiner a33b3ec554
fs/test.sh: Handle torrentfs failures synchronously 2023-05-28 13:52:50 +10:00
Matt Joiner 41e2cd5b21
gorond 2023-05-28 12:04:57 +10:00
Matt Joiner 08c403ea52
Fix logging reported in #841 2023-05-28 12:04:49 +10:00
Matt Joiner 737bffb73f
Fix filecache issues on Windows 2023-05-28 00:41:36 +10:00
Matt Joiner 3e974f17ae
fs: Update path to torrentfs 2023-05-28 00:41:36 +10:00
Matt Joiner 97fb25afdf
fs: go mod tidy 2023-05-28 00:41:36 +10:00
Matt Joiner 963c0e0f32
Fix addrPortOrZero for unix sockets on Windows 2023-05-28 00:41:36 +10:00
Matt Joiner 8e2139b335
Timeout torrentfs CI after 5 minutes 2023-05-28 00:41:36 +10:00
Matt Joiner 1849048d1d
More Windows test fixes 2023-05-28 00:41:36 +10:00
Matt Joiner 617362ddf0
go1.19 compat 2023-05-28 00:41:35 +10:00
Matt Joiner 702b2c77a0
Test fixes for Windows 2023-05-28 00:41:35 +10:00
Matt Joiner dee985f9bd
Fixes for storage tests on Windows 2023-05-28 00:41:35 +10:00
Matt Joiner 5ba8506b3f
Add check that torrent data cleanup works in TestIssue335
I'm seeing a lot of leaked directories on Windows I think. This might be silently failing.
2023-05-28 00:41:35 +10:00
Matt Joiner 4070018ebb
Fix test failure using missinggo filecache on Windows 2023-05-28 00:41:35 +10:00
Matt Joiner 6c831fef83
Make fs a separate module 2023-05-28 00:41:35 +10:00
Matt Joiner e0af603c04
Also run Go CI test job on 1.19 2023-05-28 00:41:34 +10:00
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