From a702c082ae0553122b849006af1b466494b155d3 Mon Sep 17 00:00:00 2001 From: xiaoweii Date: Fri, 26 Jan 2024 13:52:02 +0800 Subject: [PATCH] fix: increase http request timeout and reduce repeated sending of data --- .../aws/solution/clickstream/client/network/NetRequest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clickstream/src/main/java/software/aws/solution/clickstream/client/network/NetRequest.java b/clickstream/src/main/java/software/aws/solution/clickstream/client/network/NetRequest.java index 9c5723b..1b48a8c 100644 --- a/clickstream/src/main/java/software/aws/solution/clickstream/client/network/NetRequest.java +++ b/clickstream/src/main/java/software/aws/solution/clickstream/client/network/NetRequest.java @@ -42,9 +42,9 @@ public final class NetRequest { private static final Log LOG = LogFactory.getLog(NetRequest.class); - private static final long HTTP_CONNECT_TIME_OUT = 3; - private static final long HTTP_READ_TIME_OUT = 3; - private static final long HTTP_WRITE_TIME_OUT = 3; + private static final long HTTP_CONNECT_TIME_OUT = 10; + private static final long HTTP_READ_TIME_OUT = 10; + private static final long HTTP_WRITE_TIME_OUT = 10; /** * Default constructor.