diff --git a/p2p/p2p.go b/p2p/p2p.go index 25c0c3c..6b53718 100644 --- a/p2p/p2p.go +++ b/p2p/p2p.go @@ -108,7 +108,7 @@ func attemptDownloadPiece(c *client, pw *pieceWork) ([]byte, error) { } // Setting a deadline helps get unresponsive peers unstuck. - // 30 seconds is more than enough time to download 16 KB + // 30 seconds is more than enough time to download a 262 KB piece c.conn.SetDeadline(time.Now().Add(30 * time.Second)) defer c.conn.SetDeadline(time.Time{}) // Disable the deadline