-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix test proxy network calls #45130
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
base: main
Are you sure you want to change the base?
Fix test proxy network calls #45130
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
8f52e72
to
f353fb3
Compare
… bodiless matchers.
@@ -331,7 +332,10 @@ public HttpClient getPlaybackClient() { | |||
throw new IllegalStateException("A playback client can only be requested in PLAYBACK mode."); | |||
} | |||
if (testProxyPlaybackClient == null) { | |||
testProxyPlaybackClient = new TestProxyPlaybackClient(httpClient, skipRecordingRequestBody); | |||
// reactor.netty.http.client.HttpClient client = reactor.netty.http.client.HttpClient.create().wiretap("reactor.netty.http.client.HttpClient", LogLevel.TRACE, AdvancedByteBufFormat.TEXTUAL); |
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.
Did you want to remove this commented out code or if not add another comment above explaining when someone would want to make a swap here
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.
Definitely. This is really a draft PR at this point as we continue to chase down the problems. I'll clean a lot of things up when I'm done.
while (true) { | ||
try { | ||
HttpResponse response = client.sendSync(request, Context.NONE); | ||
if (response.getStatusCode() / 100 != 2) { |
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.
Should this be a helper since it's used multiple times
Fixes a bunch of places where we were not properly closing a HttpResponse.