Skip to content

Commit

Permalink
add TLS handshake timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
b-2-83 committed May 11, 2021
1 parent 9c4b3ad commit 1983bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func HTTPStatusCode(err error) int {
// package database/sql
case "sql: no rows in result set":
return http.StatusNotFound
case "i/o timeout":
case "i/o timeout", "TLS handshake timeout":
return http.StatusRequestTimeout
}
cause, ok := err.(causer)
Expand Down

0 comments on commit 1983bb7

Please sign in to comment.