mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-18 18:39:43 +00:00
Merge pull request #69 from aykhans/fix/connections-bottleneck
🐛 Remove 'CloseIdleConnections' from 'Send' function
This commit is contained in:
commit
769c04685a
@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
VERSION string = "0.5.502"
|
||||
VERSION string = "0.5.6"
|
||||
DefaultUserAgent string = "Dodo/" + VERSION
|
||||
ProxyCheckURL string = "https://www.google.com"
|
||||
DefaultMethod string = "GET"
|
||||
|
@ -26,7 +26,6 @@ type Request struct {
|
||||
func (r *Request) Send(ctx context.Context, timeout time.Duration) (*fasthttp.Response, error) {
|
||||
client := r.getClient()
|
||||
request := r.getRequest()
|
||||
defer client.CloseIdleConnections()
|
||||
defer fasthttp.ReleaseRequest(request)
|
||||
|
||||
response := fasthttp.AcquireResponse()
|
||||
|
Loading…
x
Reference in New Issue
Block a user