2
0
mirror of synced 2025-02-24 14:48:27 +00:00

3401 Commits

Author SHA1 Message Date
Matt Joiner
1eb923c947
Forward leechers and seeders announce handler results 2023-01-05 00:05:34 +11:00
Matt Joiner
2dfb57f3f7
Handle left param for http tracker server announces 2023-01-05 00:04:42 +11:00
Matt Joiner
6baf8dcb99
Limit udp tracker server request concurrency 2023-01-03 00:14:21 +11:00
Matt Joiner
f38629d354
Assume upstream peers are leechers 2022-12-29 19:42:19 +11:00
Matt Joiner
4f8826483e
Resize packet buffer to avoid wasting memory 2022-12-29 19:41:36 +11:00
Matt Joiner
f61085c785
Avoid panic in AnnounceEvent.String 2022-12-29 19:41:09 +11:00
Matt Joiner
5f127343b0
Fix race when final peers are available early 2022-12-29 19:40:20 +11:00
Matt Joiner
7d3d4bc088
Add Context parameter to SendResponse 2022-12-29 10:22:03 +11:00
Matt Joiner
7f3655a14b
Track request payload len 2022-12-29 10:21:34 +11:00
Matt Joiner
b06b614845
Make trackerServer package 2022-12-18 10:56:25 +11:00
Matt Joiner
16da3c0c46
Default to announcing as leecher 2022-12-17 11:08:46 +11:00
Matt Joiner
6731a31839
Pass seeders and leechers back in UDP announce 2022-12-17 11:08:35 +11:00
Matt Joiner
3371522119
Use port from announce request, not packet source 2022-12-16 15:39:02 +11:00
Matt Joiner
e554aa19a6
Add --port flag to announce 2022-12-16 15:38:30 +11:00
Matt Joiner
16c7621d9e
Set span errors 2022-12-16 13:22:44 +11:00
Matt Joiner
87e64b3088
Propagate announce interval, particularly for UDP 2022-12-15 23:21:08 +11:00
Matt Joiner
cbea87aaf3
Add upstream announce gating 2022-12-13 16:41:08 +11:00
Matt Joiner
ab4599b6b8
Add some tracing 2022-12-13 15:28:34 +11:00
Matt Joiner
cfe166c745
Don't use AnnounceHandler by value
It needs to share mutex for upstream tracker single flight handling.
2022-12-12 11:23:33 +11:00
Matt Joiner
0a4de1821e
Fix error message for connection ID mismatch 2022-12-08 15:07:14 +11:00
Matt Joiner
5cedf602f2
Make UDP tracker connection ID unsigned
This is more appropriate for logging and its use as a byte blob elsewhere.
2022-12-08 15:06:59 +11:00
Matt Joiner
91bde5fdf0
Use ConnectionId type alias 2022-12-08 15:06:05 +11:00
Matt Joiner
acb09fcf79
Add get peers limits 2022-12-08 14:04:43 +11:00
Matt Joiner
1028161833
Use smaller parameter type 2022-12-08 14:04:42 +11:00
Matt Joiner
e5f00e9a82
Fix goroutine leak when augmenting peers from upstream 2022-12-08 13:39:58 +11:00
Matt Joiner
26c226f88f
Fix missing log argument 2022-12-07 10:45:13 +11:00
Matt Joiner
68dc90a7f7
Rework logging 2022-12-07 10:45:12 +11:00
Matt Joiner
c23269d1cc
Support upstream trackers 2022-12-07 10:45:12 +11:00
Matt Joiner
425a91c921
Support alternate remote host resolution 2022-12-07 10:45:12 +11:00
Matt Joiner
6b5c2fa1b0
Support HTTP tracker server 2022-12-07 10:45:12 +11:00
Matt Joiner
eb9c032f2b
Start a UDP server implementation 2022-12-07 10:45:12 +11:00
Matt Joiner
682c77fcb9
Group Client DHT and tracker config 2022-12-07 10:44:38 +11:00
Matt Joiner
98d5a19d50
Support marshalling http tracker response peers 2022-12-07 10:44:26 +11:00
Matt Joiner
b81423c101
Rename tracker/http package 2022-12-07 10:44:12 +11:00
Matt Joiner
50a665f278
New go fmt on doc comments 2022-12-07 10:44:05 +11:00
Matt Joiner
330d23be22
Some tidying in tracker/udp 2022-12-05 12:51:29 +11:00
Matt Joiner
bf5a22f345
Add announce --event flag 2022-12-05 12:50:55 +11:00
Matt Joiner
17058f76f7
Wrap error returned from tracker HTTP request director 2022-11-29 10:45: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
436af2580f
Fix godo use in torrentfs CI 2022-11-29 10:29:50 +11:00
Matt Joiner
93f911ed01
Metadata size handling and DHT logging noise 2022-11-24 10:33:06 +11:00
Matt Joiner
3e0f34934d
gorond ./... 2022-11-15 23:31:27 +11:00
Matt Joiner
5501f994ca
Move a bunch of stuff into subpackages
The core package is very large now, and often only parts of it are needed.
2022-11-15 23:31:26 +11:00
Raphaël Thériault
455913c752
pass TrackerDialContext to webtorrent trackers (#785) 2022-11-14 19:20:08 +11:00
Raphaël Thériault
8e53dbaeb8
support providing a DialContext for the http client (#786) 2022-11-14 19:19:02 +11:00
pk
de4c16bbe9
Retrive file via HTTP URL in metainfo.go (#778) 2022-09-26 10:01:51 +10:00
Matt Joiner
e81c6569af
Run default DHT with table maintainer 2022-09-23 23:29:19 +10:00
Matt Joiner
c8ccd1c1b0
Update github.com/anacrolix/dht/v2 2022-09-18 11:26:58 +10:00
Matt Joiner
648acc0120
Merge branch 'webrtc-conn-leak' 2022-08-31 11:09:47 +10:00