hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [10/50] [abbrv] httpcomponents-core git commit: Fixed examples
Date Tue, 09 May 2017 19:58:02 GMT
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 <olegk@apache.org>
Authored: Mon Apr 24 09:23:19 2017 +0000
Committer: Oleg Kalnichevski <olegk@apache.org>
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<String> HOP_BY_HOP = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(


Mime
View raw message