Skip to content

[BUG] Timeout on repeated HTTP3 requests #447

@Fussballexperte

Description

@Fussballexperte

Describe the bug
When I perform a HTTP3 request to some Cloudflare website and repeat the request after over one minute, the second request produces a timeout. This does not occur for HTTP2 and it does not occur for all HTTP3 targets (i.e. google.com does not produces this error, but Cloudflare does).

To Reproduce

session := azuretls.NewSession()
defer session.Close()

session.Log()

response, err := session.Do(&azuretls.Request{
	Method:     "GET",
	Url:        "https://cloudflare-quic.com",
	ForceHTTP3: true,
})

if err != nil {
	log.Fatal(err)
}
fmt.Printf("Status: %d\n", response.StatusCode)
fmt.Printf("Proto: %s\n", response.HttpResponse.Proto)

time.Sleep(70 * time.Second)

response, err = session.Do(&azuretls.Request{
	Method:     "GET",
	Url:        "https://cloudflare-quic.com",
	ForceHTTP3: true,
})

if err != nil {
	log.Fatal(err)
	
}
fmt.Printf("Status: %d\n", response.StatusCode)
fmt.Printf("Proto: %s\n", response.HttpResponse.Proto)

It produces the following output:

[AZURETLS] 01/20/2026 - 19:12:40 | GET      |       cloudflare-quic.com | ""
[AZURETLS] 01/20/2026 - 19:12:41 | 200 |    911.3953ms | HTTP/3.0 |       cloudflare-quic.com | ""
Status: 200
Proto: HTTP/3.0
[AZURETLS] 01/20/2026 - 19:13:51 | GET      |       cloudflare-quic.com | ""
[AZURETLS] 01/20/2026 - 19:14:21 | timeout |   30.0008639s |       cloudflare-quic.com | ""
2026/01/20 19:14:21 timeout
exit status 1

Expected behavior
The second request should proceed just as the first one.

Desktop:

  • OS: Windows 10
  • Version 1.12.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions