whr819987540
d02c7c9518
add comment
2023-04-27 16:03:14 +08:00
Matt Joiner
2cb7121a93
Limit peer request data allocation
...
This follows up from abb5cbc96e
. We currently limit how many requests peers can send us, but didn't really check that peers didn't make us allocate huge amounts of space to buffer their requests. I'm sure there's some rough edges here.
2023-02-14 12:46:49 +11:00
Marco Vidonis
3909c6c125
Add customer headers when dialling WS connection to tracker ( #789 )
...
* expose WebtorrentTrackerHttpHeader field
2022-12-08 09:17:33 +11:00
Matt Joiner
682c77fcb9
Group Client DHT and tracker config
2022-12-07 10:44:38 +11:00
Matt Joiner
3d49eec03a
Rename some HTTP identifiers to Http
...
I believe the Go convention on this is bad, and this names them inline with the style used elsewhere in anacrolix/torrent with Ip for example.
Unfortunately it's pretty widespread, so I've only changed the recent additions.
2022-11-29 10:45:38 +11:00
Marco Vidonis
916af6e38a
Modify HTTP request before sending ( #787 )
...
* set up custom request headers
* apply headers defined in torrent client config
* add error handling
* provide better name for method
* update error message
* only apply HTTPRequestDirector if not nil
2022-11-29 10:35:36 +11:00
Matt Joiner
3e0f34934d
gorond ./...
2022-11-15 23:31:27 +11:00
Raphaël Thériault
8e53dbaeb8
support providing a DialContext for the http client ( #786 )
2022-11-14 19:19:02 +11:00
Craig Campbell
f120b93e1c
Add ability to set DialContext/ListenPacket for tracker announcements ( #760 )
...
This is useful if you want to use a custom dialer to proxy requests via
an external server since the HTTPProxy can only be used with tcp
trackers and not udp.
2022-07-07 15:51:58 +10:00
Matt Joiner
88a867ef9c
Default 64 MiB max unverified bytes
2022-05-12 10:34:28 +10:00
Matt Joiner
c6ee03f449
gofumpt
2021-11-08 14:47:01 +11:00
afjoseph
487352fa5b
fixup! [trackerscraper] Add custom DNS lookup function
2021-11-01 11:26:58 +11:00
afjoseph
2a6152b832
[trackerscraper] Add custom DNS lookup function
2021-11-01 11:26:58 +11:00
Matt Joiner
3d49a29288
Support minimum peer extensions
2021-10-25 20:52:44 +11:00
YenForYang
76f593e36b
Eliminate `expect` dependency ( #667 )
2021-09-24 00:10:30 +10:00
Matt Joiner
4ca47eb358
Add ClientConfig.AlwaysWantConns
2021-09-21 13:04:51 +10:00
Matt Joiner
dcb2e5b53b
Use different keep alive timeout in tests
...
Exposes bug found in email discussions resulting from https://github.com/anacrolix/torrent/discussions/547 .
2021-08-19 13:37:00 +10:00
ucwong
8b39fcf68b
missinggo go.mod fix ( #526 )
2021-06-26 10:31:50 +10:00
Matt Joiner
a570b83870
Update and expose default client identifiers
2021-06-25 11:29:59 +10:00
ucwong
6a170b9e4f
package expect fix ( #524 )
2021-06-23 21:27:18 +10:00
Matt Joiner
c3c982b621
Fixes for wasm
2021-06-23 17:24:50 +10:00
Matt Joiner
a01b451857
Add ClientConfig.AcceptPeerConnections
2021-06-21 12:14:01 +10:00
Matt Joiner
af1ca91e04
Remove conntrack, expose Torrent.AnnounceToDht, ClientConfig.PeriodicallyAnnounceTorrentsToDht
2021-06-21 12:13:53 +10:00
Matt Joiner
ad298364aa
Add client-level max unverified bytes
2021-06-07 13:01:39 +10:00
Matt Joiner
0830589b0a
Pass tests with new full-client request strategy implementation
2021-06-07 13:01:39 +10:00
Matt Joiner
305ba51dc2
Big logging cleanup to improve experience from README
2021-05-04 12:44:51 +10:00
Matt Joiner
cff461c898
Add ClientConfig.ConfigureAnacrolixDhtServer
2021-02-20 22:16:54 +11:00
Matt Joiner
ded6c19edb
Add the DropMutuallyCompletePeers ClientConfig field
2021-01-05 16:58:45 +11:00
Matt Joiner
6e43db6a89
Document ClientConfig.DisableAcceptRateLimiting
2020-12-21 19:12:50 +11:00
Matt Joiner
e6da640bb2
Tidy up doc, file names, naming
2020-11-09 10:56:45 +11:00
Matt Joiner
a2c7b384df
Limit half-open connections at the Client level
2020-09-30 16:56:27 +10:00
Matt Joiner
7ee0fdafe3
Add some client callbacks
2020-07-15 16:16:14 +10:00
Matt Joiner
72bd4f362e
Add option to disable webseeds
2020-06-02 16:17:32 +10:00
Matt Joiner
67c9021e97
Support disabling webtorrent
2020-06-01 18:24:46 +10:00
Matt Joiner
3e9a5a4aec
Expose ClientConfig.Extensions
...
Also run the storage failure test with fast disabled for the seeder. This probably would have tickled some issues in the past, so it seems like a good place to try it out.
2020-04-23 13:03:40 +10:00
Matt Joiner
e5f7765dfa
Fix small cache transfer tests
...
Since hashing Peer Addrs in the Torrent pending peers, clients are getting more than one connection to the seeder in the tests and failing.
2020-04-16 14:12:17 +10:00
Matt Joiner
c83738f3f4
Update to latest anacrolix/dht
2020-03-17 13:47:53 +11:00
Matt Joiner
c855c7a366
Differentiate between storage.ClientImpl{,Closer}
2020-02-21 14:12:44 +11:00
Matt Joiner
71f18f1042
Remove ClientConfig.ProxyURL and DefaultHTTPUserAgent
...
ProxyURL is no longer used for implicit sockets, this will ensure consumers are aware. It's other behaviour is already more correct specified through HTTPProxy.
DefaultHTTPUserAgent was vestigial, and is specified now through the ClientConfig.
2020-02-20 17:04:11 +11:00
Matt Joiner
d24922dc09
Add support for non-IP-based networks
...
Includes a test with unix sockets. Exposes AddDialer, AddListener, and reworks Peer.
2020-02-20 16:47:37 +11:00
Matt Joiner
538efd12bd
Restore the default duplicate request timeout strategy
2020-01-24 17:34:07 +11:00
Matt Joiner
48eb7ff3f2
Expose request strategies
2020-01-24 17:30:57 +11:00
Matt Joiner
2559af0f9c
Extract the request timeout stuff into requestStrategyThree
2020-01-14 10:51:09 +11:00
Matt Joiner
baefdfd9ea
Disable accept rate limiting by default
...
It messes with any non-standard usage, like localhost etc. It might even just be a bad idea when interacting with clients that behave like ourselves: opening connections with varying encryption and protocols simultaneously to each peer.
2020-01-04 17:17:56 +11:00
Matt Joiner
6cc65683e5
Revert to log v0.4.0
2020-01-04 16:43:15 +11:00
Matt Joiner
01f9fdb921
Upgrade to log v0.5.0
2020-01-03 15:37:08 +11:00
Matt Joiner
d4e90519e6
Use new anacrolix/multiless, and incorporate Peer.Trusted into peer prioritization
2019-12-23 14:04:07 +11:00
davtoro
82e1c81a9a
Possibility to change UPnP ID ( #354 )
2019-12-16 13:22:24 +11:00
Matt Joiner
f98ff7507e
Use default connection tracking values
2019-11-04 12:11:26 +11:00
Matt Joiner
0aef469a4c
Use missinggo/v2/conntrack
2019-11-02 22:35:57 +11:00