Commit Graph

2087 Commits

Author SHA1 Message Date
Matt Joiner 93d34dd122 cmd/torrent: Don't log the public IP flag value 2019-07-19 13:00:31 +10:00
Matt Joiner 219ac4ab42 go mod tidy 2019-07-17 18:17:05 +10:00
Matt Joiner 561e3915f3 cmd/torrent-magnet: Add a description to command help output 2019-07-17 18:12:54 +10:00
Matt Joiner 27b7fbe3f3 Fix announcing to S3 HTTP trackers 2019-07-17 18:12:11 +10:00
Matt Joiner b17f0119fd Use fork of elgatito/upnp that contains go module files
Avoids persistent `go: finding github.com/op/go-logging latest` when using vgo.
2019-07-17 18:03:56 +10:00
Matt Joiner 77074b772a Use tagged github.com/gosuri/uiprogress, and update uilive indirect dep
Messing with the combined progress bar and logging output in cmd/torrent and hoping it is improved.
2019-07-17 18:00:40 +10:00
Matt Joiner 9afa2e70d7 cmd/torrent-metainfo-pprint: Fix -files for single-file torrents 2019-07-17 15:28:49 +10:00
Matt Joiner 5b44954223 Send tracker stopped event from the tracker scraper routine
Fixes potential blocking on the announce while the client lock is held, as well as differing arguments to the other announces introduced by #321.
2019-07-17 11:56:25 +10:00
Matt Joiner e56ea362d9 vgo get -u && go mod tidy 2019-07-16 11:08:17 +10:00
Matt Joiner fa0bbe2e07
Create FUNDING.yml 2019-06-24 14:12:14 +10:00
Matt Joiner 4629a92f9a Ignore ".torrent.bolt.db" which is generated by unit tests 2019-06-21 14:53:57 +10:00
Matt Joiner 12958ad384 Refactor Client.dialFirst 2019-06-21 14:50:49 +10:00
Matt Joiner 06ada2ef0f Remove unnecessary import alias 2019-06-21 14:49:43 +10:00
Matt Joiner 30c705f2f8 Count client listener accepts 2019-06-21 14:49:21 +10:00
Matt Joiner 88b3f92e0b Add go 1.13 to go.mod 2019-06-21 14:49:01 +10:00
Matt Joiner d27b304dfc Remove "Sending stopped event to trackers" log 2019-06-18 10:27:17 +10:00
Matt Joiner 95daebd067 bencode: Decode singleton lists of the expected type
Fixes #297.
2019-06-13 13:07:37 +10:00
Matt Joiner 8e86f45124 Code formatting 2019-06-13 13:06:25 +10:00
Matt Joiner d4584c2ca6 bencode: Improve UnmarshalTypeError string and list parsing error context
Helps with #297.
2019-06-13 12:35:11 +10:00
Matt Joiner 53be473486 Track concurrent chunk writes 2019-06-13 12:18:24 +10:00
Leandro Martelli 7ce45366f5 Adding Started and Stopped events 2019-06-03 09:45:34 +10:00
BruceWang 60e215aa81 Add OnQuery Hook 2019-05-29 15:08:46 +10:00
boypt 25d76e0449 allow ConnStats being marsheled to json 2019-05-29 15:05:31 +10:00
Matt Joiner d2400968fc Update CircleCI to use go1.12 instead of master 2019-04-24 09:35:09 +10:00
Radoslav Georgiev 4a31dffa95 torrentfs: fix a bug where the basenames of files are extracted incorrectly when listing the entries in a directory 2019-04-23 21:02:55 +10:00
Radoslav Georgiev 8249316c78 torrentfs: fix a bug where ENOENT is returned when the node for an entry in the root directory of a torrent is requested 2019-04-23 21:02:55 +10:00
anatasluo 0238a3d30b add one downstream project (#315) 2019-04-16 09:47:07 +10:00
davtoro f40140283a check if peer id exists 2019-04-15 17:58:23 +10:00
Matt Joiner bc249730aa Fix segfault on nil conntrack.EntryHandle instance when dialing
Fixes https://github.com/anacrolix/torrent/issues/314. Comments were added to the the conntrack package master, but have no functional change required here.
2019-04-10 18:27:54 +10:00
Matt Joiner d478888231 When failing to read stored data, try updating only the completion state for the failed piece
On rare occasions, reads are failing in a loop, exhausting all the available file descriptors. It's not clear why, it could be an error in the filecache storage backend I'm using, or some logic error regarding when it's okay to try to read.
2019-04-09 12:57:54 +10:00
Matt Joiner b5a1aabe90 Make the default conntracker instance unlimited for now
There are rate limiting issues in the DHT that need to be resolved.
2019-04-09 12:54:41 +10:00
Matt Joiner 70df67555b Improve some types in reader.readOnceAt 2019-04-09 12:53:18 +10:00
Matt Joiner 485d6bb6e7 Fix leaked conntrack.EntryHandle 2019-03-29 08:48:56 +11:00
Matt Joiner 97e23327dd Remove gomobile from CI
https://github.com/golang/go/issues/27234
2019-03-23 01:34:55 +11:00
Matt Joiner 4813f16614 Fix gomobile install in CI 2019-03-22 23:36:59 +11:00
Matt Joiner 499b2d8725 Fix race condition in Torrent.SetDisplayName 2019-03-20 11:01:56 +11:00
Matt Joiner 4ea8a70a05 vgo get -u 2019-03-19 20:43:51 +11:00
Matt Joiner 67e26dd944 vgo mod tidy 2019-03-19 20:35:06 +11:00
Matt Joiner 8e68d6500b Add github.com/spaolacci/murmur3 indirect 2019-03-19 19:09:31 +11:00
Matt Joiner 3920c6c325 Fix race in Torrent.String 2019-03-12 11:22:25 +11:00
Matt Joiner df47e3aaef Update missinggo and dht 2019-03-11 11:51:29 +11:00
Matt Joiner 20de43a42c Panic on chunk write errors
The torrent client will download indefinitely when this occurs, a strategy to handle or raise the error more appropriately is required.
2019-03-11 10:46:06 +11:00
Matt Joiner 5829c30146 Make use of the new context parameter in conntrack Wait 2019-03-11 10:46:06 +11:00
Matt Joiner 376c669445 Update to missinggo v0.2.0 2019-03-03 14:40:49 +11:00
Matt Joiner c639cce605 Fix double quoting in a log statement 2019-03-03 14:31:08 +11:00
Matt Joiner 52b3a4e816 Move multiless to missinggo 2019-03-03 14:31:08 +11:00
Masih Yeganeh 72db8ae577 Adds more flags to torrent-create
Flags for setting Comment and CreatedBy fields and starting with empty AnnounceList
2019-03-01 11:18:57 +11:00
Matt Joiner f1e4840959 Avoid allocating a slice when iterating pending chunks 2019-02-19 14:41:52 +11:00
Matt Joiner 2e3281421f go mod tidy 2019-02-19 14:38:31 +11:00
Matt Joiner 9ea65d672f Torrent.String: Quote raw names 2019-02-16 18:33:14 +11:00