mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
More throughput-friendly hack (just delay at very end vs. each packet)
Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
parent
862c0c3d7f
commit
6c049dde08
2 changed files with 7 additions and 4 deletions
|
@ -1320,10 +1320,6 @@ func (hc *Conn) WritePacket(b []byte, ctrlStatOp byte) (n int, err error) {
|
|||
hmacOut = hc.wm.Sum(nil)[0:HMAC_CHK_SZ]
|
||||
|
||||
//log.Printf(" (%08x> HMAC(o):%s\r\n", payloadLen, hex.EncodeToString(hmacOut))
|
||||
// HACK: Bug #22: (xc) Need flow control so sender can't overwhelm rcvr with data.
|
||||
if payloadLen > 8192 {
|
||||
time.Sleep(time.Duration(10 * time.Millisecond)) // Let rcvr set this on setup?
|
||||
}
|
||||
|
||||
var wb bytes.Buffer
|
||||
// The StreamWriter acts like a pipe, forwarding whatever is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue