HTTP_Adapter: Make timeout configurable
Change-Id: Icdcba367dc12c0f20a733572da250d7db22c03ee
diff --git a/library/HTTP_Adapter.ttcn b/library/HTTP_Adapter.ttcn
index a9d0d83..03de1f3 100644
--- a/library/HTTP_Adapter.ttcn
+++ b/library/HTTP_Adapter.ttcn
@@ -73,10 +73,11 @@
/* run a HTTP request and return the response */
function f_http_transact(charstring url, charstring method := "GET",
- charstring body := "", template HTTPMessage exp := tr_HTTP_Resp2xx)
+ charstring body := "", template HTTPMessage exp := tr_HTTP_Resp2xx,
+ float tout := 2.0)
runs on http_CT return HTTPMessage {
var HTTPMessage resp;
- timer T := 2.0;
+ timer T := tout;
HTTP.send(ts_HTTP_Connect(g_http_host, g_http_port));
//HTTP.receive(Connect_result:?);