-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httpClient.Do is protected by a mutex? #56
Comments
I understand what you're describing. I have introduced locking in #29. but I did not satisfied myself. It seems I have to make a call before v1.0 release on this locking. |
Updates are present in #29. Closing this one. |
wppurking
added a commit
to wppurking/resty
that referenced
this issue
Dec 4, 2017
according to go-resty#56 the Request Level Proxy is removed.
jeevatkm
pushed a commit
that referenced
this issue
Dec 4, 2017
according to #56 the Request Level Proxy is removed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because of the locking, there can only be one outgoing call, which is really bad to the performance. If I understand it correctly,
Unlock()
is moved up before httpClient.Do. For the above case, there is no guarantee on which proxy will be used, which is not good.I hope this per request proxy is an optional feature. Providing it is fine but without sacrificing the normal use case.
Code ref:
https://github.com/go-resty/resty/blob/master/client.go#L634-L647
The text was updated successfully, but these errors were encountered: