Skip to content

Commit 1983bb7

Browse files
committed
add TLS handshake timeout
1 parent 9c4b3ad commit 1983bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func HTTPStatusCode(err error) int {
5454
// package database/sql
5555
case "sql: no rows in result set":
5656
return http.StatusNotFound
57-
case "i/o timeout":
57+
case "i/o timeout", "TLS handshake timeout":
5858
return http.StatusRequestTimeout
5959
}
6060
cause, ok := err.(causer)

0 commit comments

Comments
 (0)