4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-06 06:24:06 +00:00

WARNING: CRYPTO DISABLED while speeding up stream writeMsg

This commit is contained in:
Arceliar
2019-08-04 14:18:59 -05:00
parent 1e6a6d2160
commit f52955ee0f
5 changed files with 28 additions and 13 deletions

View File

@ -820,7 +820,7 @@ func (t *switchTable) doWorker() {
select {
case bs := <-t.toRouter:
buf = append(buf, bs)
for len(buf) > 32 {
for len(buf) > 32768 { // FIXME realistically don't drop anything, just for testing
util.PutBytes(buf[0])
buf = buf[1:]
}