mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 03:48:26 +00:00
Improve/fix buffer handling
This commit is contained in:
parent
726afc915a
commit
223bdbb9aa
@ -238,7 +238,7 @@ func (d *Discoverer) externalLookup(node string) (string, bool) {
|
||||
return "", false
|
||||
}
|
||||
|
||||
var buf = buffers.Get(1024)
|
||||
var buf = buffers.Get(256)
|
||||
defer buffers.Put(buf)
|
||||
|
||||
n, err := conn.Read(buf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user