add patches for anacrolix@torrent

This commit is contained in:
nikk gitanes
2022-06-01 09:58:45 +03:00
parent 3b323be06d
commit d9af1e709f
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
--- reader.go.orig 2022-06-01 09:26:35.000000000 +0300
+++ reader.go 2022-05-17 05:47:36.000000000 +0300
@@ -102,9 +102,9 @@
if !ok {
break
}
- if !r.responsive && !r.t.pieceComplete(pieceIndex(req.Index)) {
- break
- }
+// if !r.responsive && !r.t.pieceComplete(pieceIndex(req.Index)) {
+// break
+// }
if !r.t.haveChunk(req) {
break
}

View File

@@ -0,0 +1,15 @@
--- tracker/udp/conn-client.go.orig 2022-05-16 05:10:10.000000000 +0300
+++ tracker/udp/conn-client.go 2022-06-01 09:34:27.000000000 +0300
@@ -38,9 +38,9 @@
// TODO: Do bad things to the dispatcher, and incoming calls to the client if we have a
// read error.
cc.readErr = err
- if !cc.closed {
- panic(err)
- }
+// if !cc.closed {
+// panic(err)
+// }
break
}
err = cc.d.Dispatch(b[:n], addr)