You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/11/07 19:00:55 UTC

httpcomponents-core git commit: Change timeout in example from 3 to 10 seconds to make the example a little more resilient for real life experimentation with third party origin servers.

Repository: httpcomponents-core
Updated Branches:
  refs/heads/master 8e4def847 -> 3adede014


Change timeout in example from 3 to 10 seconds to make the example a
little more resilient for real life experimentation with third party
origin servers.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/3adede01
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/3adede01
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/3adede01

Branch: refs/heads/master
Commit: 3adede0147500417464890428813cd7d7f59925a
Parents: 8e4def8
Author: Gary Gregory <ga...@gmail.com>
Authored: Wed Nov 7 12:00:53 2018 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Wed Nov 7 12:00:53 2018 -0700

----------------------------------------------------------------------
 .../apache/hc/core5/http/examples/AsyncReverseProxyExample.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3adede01/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncReverseProxyExample.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncReverseProxyExample.java b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncReverseProxyExample.java
index aabb220..36e478f 100644
--- a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncReverseProxyExample.java
+++ b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncReverseProxyExample.java
@@ -101,7 +101,7 @@ public class AsyncReverseProxyExample {
         System.out.println("Reverse proxy to " + targetHost);
 
         IOReactorConfig config = IOReactorConfig.custom()
-            .setSoTimeout(3, TimeUnit.SECONDS)
+            .setSoTimeout(10, TimeUnit.SECONDS)
             .build();
 
         final HttpAsyncRequester requester = AsyncRequesterBootstrap.bootstrap()