-
Notifications
You must be signed in to change notification settings - Fork 18.7k
net/http/httptest: remove unnecessary creation of http.Transport #60124
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
Conversation
|
This PR (HEAD: a3facfc) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/494355 to see it. Tip: You can toggle comments from me using the |
mimani68
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sound current modification could helps to improve performance.
Why is test result?
Sorry, but I don't understand your question. Can you elaborate the question? And please note that the golang project uses Gerrit for code review. |
|
Message from Damien Neil: Patch Set 1: Auto-Submit+1 Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from qiulaidongfeng: Patch Set 1: Code-Review+1 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 1: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
a3facfc to
bb7e510
Compare
|
This PR (HEAD: bb7e510) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/494355. Important tips:
|
|
Message from qiulaidongfeng: Patch Set 2: Code-Review+1 Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 2: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 2: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
In (*Server).StartTLS, it's unnecessary to create an http.Client with a Transport, because a new one will be created with the TLSClientConfig later.
bb7e510 to
3372459
Compare
|
This PR (HEAD: 3372459) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/494355. Important tips:
|
|
Message from Zeke Lu: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from t hepudds: Patch Set 2: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from t hepudds: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Gopher Robot: Patch Set 3: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from qiulaidongfeng: Patch Set 3: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
|
Message from Heschi Kreinick: Patch Set 3: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/494355. |
In (*Server).StartTLS, it's unnecessary to create an http.Client with a Transport, because a new one will be created with the TLSClientConfig later. Change-Id: I086e28717e9739787529006c3f0296c8224cd790 GitHub-Last-Rev: 3372459 GitHub-Pull-Request: #60124 Reviewed-on: https://go-review.googlesource.com/c/go/+/494355 Run-TryBot: t hepudds <thepudds1460@gmail.com> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: qiulaidongfeng <2645477756@qq.com>
|
This PR is being closed because golang.org/cl/494355 has been merged. |
In (*Server).StartTLS, it's unnecessary to create an http.Client
with a Transport, because a new one will be created with the
TLSClientConfig later.