Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DCE01200C6F for ; Tue, 9 May 2017 21:57:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DBB56160BEA; Tue, 9 May 2017 19:57:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D75AA160BCE for ; Tue, 9 May 2017 21:57:54 +0200 (CEST) Received: (qmail 65178 invoked by uid 500); 9 May 2017 19:57:53 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 64745 invoked by uid 99); 9 May 2017 19:57:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2017 19:57:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6006CEE68D; Tue, 9 May 2017 19:57:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: olegk@apache.org To: commits@hc.apache.org Date: Tue, 09 May 2017 19:58:02 -0000 Message-Id: <4c7a313c420b4266bd380e3f29a54b62@git.apache.org> In-Reply-To: <8a8108f3a94142b0bb4fe4d7e8be443e@git.apache.org> References: <8a8108f3a94142b0bb4fe4d7e8be443e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/50] [abbrv] httpcomponents-core git commit: Fixed examples archived-at: Tue, 09 May 2017 19:57:56 -0000 Fixed examples git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1792441 13f79535-47bb-0310-9956-ffa450edef68 Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/3d507fc4 Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/3d507fc4 Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/3d507fc4 Branch: refs/heads/trunk Commit: 3d507fc452e909354574bf91c1b6a90bc1cefefa Parents: fe9b6f4 Author: Oleg Kalnichevski Authored: Mon Apr 24 09:23:19 2017 +0000 Committer: Oleg Kalnichevski Committed: Mon Apr 24 09:23:19 2017 +0000 ---------------------------------------------------------------------- .../org/apache/hc/core5/http/examples/Http2FileServerExample.java | 2 +- .../org/apache/hc/core5/http/examples/AsyncFileServerExample.java | 2 +- .../apache/hc/core5/http/examples/AsyncReverseProxyExample.java | 2 +- .../apache/hc/core5/http/examples/ClassicFileServerExample.java | 2 +- .../apache/hc/core5/http/examples/ClassicReverseProxyExample.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3d507fc4/httpcore5-h2/src/examples/org/apache/hc/core5/http/examples/Http2FileServerExample.java ---------------------------------------------------------------------- diff --git a/httpcore5-h2/src/examples/org/apache/hc/core5/http/examples/Http2FileServerExample.java b/httpcore5-h2/src/examples/org/apache/hc/core5/http/examples/Http2FileServerExample.java index 3477eef..d95afbb 100644 --- a/httpcore5-h2/src/examples/org/apache/hc/core5/http/examples/Http2FileServerExample.java +++ b/httpcore5-h2/src/examples/org/apache/hc/core5/http/examples/Http2FileServerExample.java @@ -237,7 +237,7 @@ public class Http2FileServerExample { ListenerEndpoint listenerEndpoint = server.listen(new InetSocketAddress(port)); listenerEndpoint.waitFor(); System.out.print("Listening on " + listenerEndpoint.getAddress()); - server.awaitShutdown(TimeValue.MAX_VALUE); + server.awaitShutdown(TimeValue.ofDays(Long.MAX_VALUE)); } } http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3d507fc4/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java ---------------------------------------------------------------------- diff --git a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java index bef7217..610c959 100644 --- a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java +++ b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java @@ -200,7 +200,7 @@ public class AsyncFileServerExample { ListenerEndpoint listenerEndpoint = server.listen(new InetSocketAddress(port)); listenerEndpoint.waitFor(); System.out.print("Listening on " + listenerEndpoint.getAddress()); - server.awaitShutdown(TimeValue.MAX_VALUE); + server.awaitShutdown(TimeValue.ofDays(Long.MAX_VALUE)); } } http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3d507fc4/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 4a7109c..42d12ff 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 @@ -222,7 +222,7 @@ public class AsyncReverseProxyExample { server.listen(new InetSocketAddress(port)); System.out.println("Listening on port " + port); - server.awaitShutdown(TimeValue.MAX_VALUE); + server.awaitShutdown(TimeValue.ofDays(Long.MAX_VALUE)); } private static class ProxyBuffer extends ExpandableBuffer { http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3d507fc4/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java ---------------------------------------------------------------------- diff --git a/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java b/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java index 45fd44c..d590e38 100644 --- a/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java +++ b/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java @@ -126,7 +126,7 @@ public class ClassicFileServerExample { }); System.out.println("Listening on port " + port); - server.awaitTermination(TimeValue.MAX_VALUE); + server.awaitTermination(TimeValue.ofDays(Long.MAX_VALUE)); } http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/3d507fc4/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicReverseProxyExample.java ---------------------------------------------------------------------- diff --git a/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicReverseProxyExample.java b/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicReverseProxyExample.java index 4fa7c06..ca4723f 100644 --- a/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicReverseProxyExample.java +++ b/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicReverseProxyExample.java @@ -178,7 +178,7 @@ public class ClassicReverseProxyExample { }); System.out.println("Listening on port " + port); - server.awaitTermination(TimeValue.MAX_VALUE); + server.awaitTermination(TimeValue.ofDays(Long.MAX_VALUE)); } private final static Set HOP_BY_HOP = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(