Skip to content

Commit

Permalink
adjust tests,avoid overflow of netdev
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Jan 9, 2019
1 parent 4230b8d commit 2e7567b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sess_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func dialEcho() (*UDPSession, error) {
sess.SetStreamMode(true)
sess.SetStreamMode(false)
sess.SetStreamMode(true)
sess.SetWindowSize(2048, 2048)
sess.SetWindowSize(1024, 1024)
sess.SetReadBuffer(16 * 1024 * 1024)
sess.SetWriteBuffer(16 * 1024 * 1024)
sess.SetStreamMode(true)
Expand All @@ -57,6 +57,7 @@ func dialEcho() (*UDPSession, error) {
sess.SetMtu(1600)
sess.SetMtu(1400)
sess.SetACKNoDelay(true)
sess.SetACKNoDelay(false)
sess.SetDeadline(time.Now().Add(time.Minute))
return sess, err
}
Expand All @@ -68,7 +69,7 @@ func dialSink() (*UDPSession, error) {
}

sess.SetStreamMode(true)
sess.SetWindowSize(2048, 2048)
sess.SetWindowSize(1024, 1024)
sess.SetReadBuffer(16 * 1024 * 1024)
sess.SetWriteBuffer(16 * 1024 * 1024)
sess.SetStreamMode(true)
Expand Down

0 comments on commit 2e7567b

Please sign in to comment.