From 9b1df99ea1572b5834453be5c6158a1bd9d7ce30 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Fri, 5 Apr 2019 13:22:56 -0700 Subject: [PATCH] use detached channels --- src/croc/croc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index ab27237b..5eae6846 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -26,7 +26,7 @@ import ( var log = logrus.New() -const BufferSize = 4096 * 4 +const BufferSize = 4096 * 12 const Channels = 1 func init() { @@ -735,7 +735,7 @@ func (c *Client) dataChannelSend(num int) (err error) { c.log.Debug("Could not send on data channel", err.Error()) continue } - time.Sleep(1 * time.Second) + time.Sleep(1000 * time.Microsecond) } location += int64(bytesread)