mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-08 14:58: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
|
return "", false
|
||||||
}
|
}
|
||||||
|
|
||||||
var buf = buffers.Get(1024)
|
var buf = buffers.Get(256)
|
||||||
defer buffers.Put(buf)
|
defer buffers.Put(buf)
|
||||||
|
|
||||||
n, err := conn.Read(buf)
|
n, err := conn.Read(buf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user