4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-09-18 13:22:30 +00:00

use smaller buffer sizes for buffered channels

This commit is contained in:
Arceliar
2018-02-03 18:44:28 -06:00
parent 80a45b3859
commit 63aadf6e88
4 changed files with 8 additions and 8 deletions

View File

@@ -163,8 +163,8 @@ func (ss *sessions) createSession(theirPermKey *boxPubKey) *sessionInfo {
sinfo.myHandle = *newHandle()
sinfo.theirAddr = *address_addrForNodeID(getNodeID(&sinfo.theirPermPub))
sinfo.theirSubnet = *address_subnetForNodeID(getNodeID(&sinfo.theirPermPub))
sinfo.send = make(chan []byte, 1024)
sinfo.recv = make(chan *wire_trafficPacket, 1024)
sinfo.send = make(chan []byte, 32)
sinfo.recv = make(chan *wire_trafficPacket, 32)
go sinfo.doWorker()
sinfo.time = time.Now()
// Do some cleanup