0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

use detached channels

This commit is contained in:
Zack Scholl 2019-04-05 13:21:20 -07:00
parent b2020c73ab
commit 8a7900db4b

View file

@ -26,7 +26,7 @@ import (
var log = logrus.New()
const BufferSize = 64000
const BufferSize = 4096 * 4
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(100 * time.Microsecond)
time.Sleep(1 * time.Second)
}
location += int64(bytesread)