mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
chore: update dependencies
This commit is contained in:
1 parent
d0e2d9be42
commit
c7d072372b
7 files changed
+132
-134
No files matched your search
@@ -208,7 +208,7 @@ func TestWriteTo(t *testing.T) {
|
||||
t.Fatal("WriteTo nw mismatch", nw)
|
||||
}
|
||||
|
||||
if bytes.Compare(sndbuf, rcvbuf.Bytes()) != 0 {
|
||||
if !bytes.Equal(sndbuf, rcvbuf.Bytes()) {
|
||||
t.Fatal("mismatched echo bytes")
|
||||
}
|
||||
}
|
||||
@@ -282,7 +282,7 @@ func TestWriteToV2(t *testing.T) {
|
||||
t.Fatal("WriteTo nw mismatch", nw)
|
||||
}
|
||||
|
||||
if bytes.Compare(sndbuf, rcvbuf.Bytes()) != 0 {
|
||||
if !bytes.Equal(sndbuf, rcvbuf.Bytes()) {
|
||||
t.Fatal("mismatched echo bytes")
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -139,7 +139,7 @@ func (s *Stream) tryReadv2(b []byte) (n int, err error) {
|
||||
|
||||
// in an ideal environment:
|
||||
// if more than half of buffer has consumed, send read ack to peer
|
||||
// based on round-trip time of ACK, continous flowing data
|
||||
// based on round-trip time of ACK, continuous flowing data
|
||||
// won't slow down because of waiting for ACK, as long as the
|
||||
// consumer keeps on reading data
|
||||
// s.numRead == n also notify window at the first read
|
||||
|
||||
Reference in new issue
Block a user