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:
parent
8a7900db4b
commit
9b1df99ea1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue