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:22:56 -07:00
parent 8a7900db4b
commit 9b1df99ea1

View file

@ -26,7 +26,7 @@ import (
var log = logrus.New() var log = logrus.New()
const BufferSize = 4096 * 4 const BufferSize = 4096 * 12
const Channels = 1 const Channels = 1
func init() { 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()) c.log.Debug("Could not send on data channel", err.Error())
continue continue
} }
time.Sleep(1 * time.Second) time.Sleep(1000 * time.Microsecond)
} }
location += int64(bytesread) location += int64(bytesread)