MT#55408 Added timeout for pushd request

In lua pushd library we added a curl
timeout.

Change-Id: I0ec09712a964bf45d9c322203a82d6130e05d3ab
mr11.1.1
Daniel Grotti 3 years ago
parent 9687999803
commit 56e8807b45

@ -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