Skip to content

Commit

Permalink
Fix for broken pipe issue
Browse files Browse the repository at this point in the history
  • Loading branch information
monu-k2io committed Jul 12, 2023
1 parent 3f0177f commit 854e366
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ public void callExecute() throws URISyntaxException, IOException {
try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
HttpGet httpGet = new HttpGet(server.getEndPoint().toString());
httpclient.execute(httpGet);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

Expand All @@ -250,6 +252,8 @@ public void callExecute1() throws URISyntaxException, IOException {
HttpGet httpGet = new HttpGet(server.getEndPoint().toString());
HttpContext httpContext = new BasicHttpContext();
httpclient.execute(httpGet, httpContext);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

Expand All @@ -259,6 +263,8 @@ public void callExecute2() throws URISyntaxException, IOException {
HttpHost httpHost = new HttpHost(server.getEndPoint().getScheme(), server.getEndPoint().getHost(), server.getEndPoint().getPort());
HttpGet httpGet = new HttpGet(server.getEndPoint().toString());
httpclient.execute(httpHost, httpGet);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

Expand All @@ -269,6 +275,8 @@ public void callExecute3() throws URISyntaxException, IOException {
HttpGet httpGet = new HttpGet(server.getEndPoint().toString());
HttpContext httpContext = new BasicHttpContext();
httpclient.execute(httpHost, httpGet, httpContext);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

Expand All @@ -278,6 +286,8 @@ public void callExecute4() throws Exception {
HttpGet httpGet = new HttpGet(server.getEndPoint().toString());
HttpClientResponseHandler<String> responseHandler = new BasicHttpClientResponseHandler();
httpclient.execute(httpGet, responseHandler);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

Expand All @@ -288,6 +298,8 @@ public void callExecute5() throws Exception {
HttpClientResponseHandler<String> responseHandler = new BasicHttpClientResponseHandler();
HttpContext httpContext = new BasicHttpContext();
httpclient.execute(httpGet, httpContext, responseHandler);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

Expand All @@ -298,6 +310,8 @@ public void callExecute6() throws Exception {
HttpClientResponseHandler<String> responseHandler = new BasicHttpClientResponseHandler();
HttpHost httpHost = new HttpHost(server.getEndPoint().getScheme(), server.getEndPoint().getHost(), server.getEndPoint().getPort());
httpclient.execute(httpHost, httpGet, responseHandler);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

Expand All @@ -309,6 +323,8 @@ public void callExecute7() throws Exception {
HttpHost httpHost = new HttpHost(server.getEndPoint().getScheme(), server.getEndPoint().getHost(), server.getEndPoint().getPort());
HttpContext httpContext = new BasicHttpContext();
httpclient.execute(httpHost, httpGet, httpContext, responseHandler);
Thread.sleep(100);
} catch (InterruptedException e) {
}
}
}

0 comments on commit 854e366

Please sign in to comment.