You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: when disconnecting, close the underlying connection before the response InputStream (#1315)
Adds a test to the `NetHttpTransport` and `ApacheHttpTransport` to make sure we don't wait until all the content is read when disconnecting the response.
Fixes#1303
Copy file name to clipboardExpand all lines: google-http-client-apache-v2/src/test/java/com/google/api/client/http/apache/v2/ApacheHttpTransportTest.java
+70-13
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,8 @@
35
35
importjava.io.OutputStream;
36
36
importjava.net.InetSocketAddress;
37
37
importjava.nio.charset.StandardCharsets;
38
+
importjava.util.concurrent.ExecutorService;
39
+
importjava.util.concurrent.Executors;
38
40
importjava.util.concurrent.atomic.AtomicBoolean;
39
41
importjava.util.concurrent.atomic.AtomicInteger;
40
42
importorg.apache.http.Header;
@@ -213,11 +215,32 @@ public void testConnectTimeout() {
0 commit comments