MT#55408 Added timeout for pushd request

In lua pushd library we added a curl
timeout.

Change-Id: I0ec09712a964bf45d9c322203a82d6130e05d3ab
mr10.5.3
Daniel Grotti 3 years ago committed by Víctor Seva
parent 19044903d5
commit cf87693232

@ -210,6 +210,7 @@ function NGCPPush:request(postdata)
self.c:setopt(curl.OPT_SSL_VERIFYPEER, 0)
self.c:setopt(curl.OPT_HTTPHEADER, headers)
self.c:setopt(curl.OPT_URL, self.config.url)
self.c:setopt(curl.OPT_TIMEOUT, 2)
self.c:setopt(curl.OPT_HEADERFUNCTION, h_build_w_cb(ret))
self.c:setopt(curl.OPT_WRITEFUNCTION, build_w_cb(response_body))
self.c:setopt(curl.OPT_POSTFIELDS, postfields(postdata))

Loading…
Cancel
Save