mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
respect minimum idle timeout of 3 PTOs (#3909)
This commit is contained in:
parent
85764da3b6
commit
f57f876446
3 changed files with 56 additions and 6 deletions
|
@ -105,7 +105,7 @@ var _ = Describe("Timeout tests", func() {
|
|||
})
|
||||
|
||||
It("returns net.Error timeout errors when an idle timeout occurs", func() {
|
||||
const idleTimeout = 100 * time.Millisecond
|
||||
const idleTimeout = 500 * time.Millisecond
|
||||
|
||||
server, err := quic.ListenAddr(
|
||||
"localhost:0",
|
||||
|
@ -173,7 +173,7 @@ var _ = Describe("Timeout tests", func() {
|
|||
var idleTimeout time.Duration
|
||||
|
||||
BeforeEach(func() {
|
||||
idleTimeout = scaleDuration(100 * time.Millisecond)
|
||||
idleTimeout = scaleDuration(500 * time.Millisecond)
|
||||
})
|
||||
|
||||
It("times out after inactivity", func() {
|
||||
|
@ -315,7 +315,7 @@ var _ = Describe("Timeout tests", func() {
|
|||
})
|
||||
|
||||
It("does not time out if keepalive is set", func() {
|
||||
const idleTimeout = 100 * time.Millisecond
|
||||
const idleTimeout = 500 * time.Millisecond
|
||||
|
||||
server, err := quic.ListenAddr(
|
||||
"localhost:0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue