mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: httpclient/lua: error when the httpclient_start() fails
Jump to an luaL_error() when the httpclient fails, it could be the result of an allocation failure, or even a wrong URL. Must be backported in 2.5.
This commit is contained in:
parent
4006b0f130
commit
c2d3db44ad
1 changed files with 2 additions and 1 deletions
|
|
@ -7300,7 +7300,8 @@ __LJMP static int hlua_httpclient_send(lua_State *L, enum http_meth_t meth)
|
|||
return 0;
|
||||
}
|
||||
|
||||
httpclient_start(hlua_hc->hc);
|
||||
if (!httpclient_start(hlua_hc->hc))
|
||||
WILL_LJMP(luaL_error(L, "couldn't start the httpclient"));
|
||||
|
||||
MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_httpclient_snd_yield, TICK_ETERNITY, 0));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue