Skip to content

Commit

Permalink
reduce the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Jan 24, 2024
1 parent cc412ba commit 5810eaf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ protected void initChannel(Channel ch)
LOGGER.info("Postgre wire protocol server start. Bound Address: %s", boundAddress);
success = true;
}
catch (Exception e) {
LOGGER.error(e, "Failed to bind to address");
}
finally {
if (!success) {
// stop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public TestingWireProtocolClient(InetSocketAddress isa)
throws IOException
{
this.socketClient = new Socket();
socketClient.setSoTimeout(60000);
socketClient.setSoTimeout(10000);
socketClient.connect(isa);

this.in = socketClient.getInputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public RequireAccioServer() {}
public void init()
{
this.accioServer = createAccioServer();
this.client = closer.register(new JettyHttpClient(new HttpClientConfig().setIdleTimeout(new Duration(300, SECONDS))));
this.client = closer.register(new JettyHttpClient(new HttpClientConfig().setIdleTimeout(new Duration(20, SECONDS))));
closer.register(accioServer);
prepare();
}
Expand Down

0 comments on commit 5810eaf

Please sign in to comment.