increase timeout for httpbin request

Signed-off-by: James Strong <strong.james.e@gmail.com>
This commit is contained in:
James Strong 2023-04-26 15:30:25 -04:00
parent 8a1eb32e2f
commit 5e941c4f9c
Failed to extract signature

View file

@ -76,7 +76,7 @@ func smugglingRequest(host, addr string, port int) (string, error) {
defer conn.Close()
conn.SetDeadline(time.Now().Add(time.Second * 10))
conn.SetDeadline(time.Now().Add(time.Second * 60))
_, err = fmt.Fprintf(conn, "GET /echo HTTP/1.1\r\nHost: %v\r\nContent-Length: 56\r\n\r\nGET /_hidden/index.html HTTP/1.1\r\nHost: notlocalhost\r\n\r\n", host)
if err != nil {