mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-11-10 09:02:31 +08:00
Ensure http connection is closed after an announce (even if the .client config does not set Connection: close header).
This commit is contained in:
parent
b34964638d
commit
b03b29a79e
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,7 @@ public class HTTPTrackerClient extends TrackerClient {
|
|||
if (conn != null) {
|
||||
in = conn.getErrorStream();
|
||||
}
|
||||
logger.trace("Tracker answer was an error: {}", ioe);
|
||||
}
|
||||
|
||||
// At this point if the input stream is null it means we have neither a
|
||||
|
@ -135,6 +136,7 @@ public class HTTPTrackerClient extends TrackerClient {
|
|||
logger.warn("Problem ensuring error stream closed!", ioe);
|
||||
}
|
||||
}
|
||||
conn.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue