aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHugo Wetterberg <[email protected]>2021-01-13 22:30:08 +0100
committerAdnan Maolood <[email protected]>2021-01-13 17:13:56 -0500
commitde042e4724f617813d64ba72453fd41f654e828e (patch)
treea224540bc18fa5ce27ee5dbbc20b68f9f6e748ff /examples
parentMove tofu.go to a subpackage (diff)
downloadgo-gemini-de042e4724f617813d64ba72453fd41f654e828e.tar.xz
go-gemini-de042e4724f617813d64ba72453fd41f654e828e.zip
client: set the client timout on the dialer, close connection on err
Client.Timout isn't respected for the dial. Requests will hang on dial until OS-level timouts kick in unless there is a Request.Context with a deadline. We also fail to close the connection on errors. This change sets the client timeout as the dialer timeout so that it will be respected. It also ensures that we close the connection if we fail to make the request.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions