You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/11/27 18:00:52 UTC
[incubator-openwhisk] branch master updated: Add the idle timeout
configuration to the Akka client (#3009)
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 8c4d328 Add the idle timeout configuration to the Akka client (#3009)
8c4d328 is described below
commit 8c4d328ff68d8663fa08617e0dfbb0984e47ffde
Author: Vincent <sh...@us.ibm.com>
AuthorDate: Mon Nov 27 13:00:50 2017 -0500
Add the idle timeout configuration to the Akka client (#3009)
This PR sets the idle timeout to 5 minutes in order to give enough
time for sequence tests to finish.
---
tests/src/test/scala/common/rest/WskRest.scala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/src/test/scala/common/rest/WskRest.scala b/tests/src/test/scala/common/rest/WskRest.scala
index d5feb33..a38ba16 100644
--- a/tests/src/test/scala/common/rest/WskRest.scala
+++ b/tests/src/test/scala/common/rest/WskRest.scala
@@ -1181,6 +1181,7 @@ class RunWskRestCmd() extends FlatSpec with RunWskCmd with Matchers with ScalaFu
implicit val config = PatienceConfig(100 seconds, 15 milliseconds)
implicit val materializer = ActorMaterializer()
+ val idleTimeout = 5 minutes
val queueSize = 10
val maxOpenRequest = 1024
val basePath = Path("/api/v1")
@@ -1224,7 +1225,8 @@ class RunWskRestCmd() extends FlatSpec with RunWskCmd with Matchers with ScalaFu
HttpEntity(ContentTypes.`application/json`, b)
} getOrElse HttpEntity(ContentTypes.`application/json`, "")
val request = HttpRequest(method, uri, List(Authorization(creds)), entity = entity)
- val connectionPoolSettings = ConnectionPoolSettings(actorSystem).withMaxOpenRequests(maxOpenRequest)
+ val connectionPoolSettings =
+ ConnectionPoolSettings(actorSystem).withMaxOpenRequests(maxOpenRequest).withIdleTimeout(idleTimeout)
val pool = Http().cachedHostConnectionPoolHttps[Promise[HttpResponse]](
host = WhiskProperties.getApiHost,
connectionContext = connectionContext,
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].