client.go | 2 +- diff --git a/client.go b/client.go index 72782463ee948d57367e60f519f62dbd9743d1cb..d9ca34221e6e6b952ae694cfcfff8a46616a73dc 100644 --- a/client.go +++ b/client.go @@ -745,7 +745,7 @@ // Processes incoming bittorrent messages. The client lock is held upon entry // and exit. func (me *Client) connectionLoop(t *torrent, c *connection) error { decoder := pp.Decoder{ - R: bufio.NewReader(c.Socket), + R: bufio.NewReaderSize(c.Socket, 20*1024), MaxLength: 256 * 1024, } for {