Request: Fix http.Client race issue when setting transport layer proxy and timeouts (#885)

* backtester/request: trying to fix panic (WIP)

* request: fix race for transport layer

* request: linter issue fix

* request: more linter issues

* requester: Add function to remove the tracking of underlying http client and add to engine unload exchange.

* request: add more context to error return

* request: Fix after cherry pick issues

* request: fix niterinos

* exchanges: change return to package variable

* request: changed named

Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
This commit is contained in:
Ryan O'Hara-Reid
2022-02-18 09:22:10 +11:00
committed by GitHub
parent 11da520dc8
commit 6127e2ab73
53 changed files with 752 additions and 257 deletions

View File

@@ -198,11 +198,12 @@ func (c *CustomEx) WithdrawFiatFundsToInternationalBank(ctx context.Context, wit
return nil, nil
}
func (c *CustomEx) SetHTTPClientUserAgent(ua string) {
func (c *CustomEx) SetHTTPClientUserAgent(ua string) error {
return nil
}
func (c *CustomEx) GetHTTPClientUserAgent() string {
return ""
func (c *CustomEx) GetHTTPClientUserAgent() (string, error) {
return "", nil
}
func (c *CustomEx) SetClientProxyAddress(addr string) error {