mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-15 20:06:10 +05:00
add patches for anacrolix@torrent
This commit is contained in:
15
patches/00-responsive-reader.patch
Normal file
15
patches/00-responsive-reader.patch
Normal 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
|
||||
}
|
||||
15
patches/01-no-udp-panic.patch
Normal file
15
patches/01-no-udp-panic.patch
Normal 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)
|
||||
Reference in New Issue
Block a user