int port;
const char *ip;
struct connection *conn;
+ struct hlua *hlua;
+ struct appctx *appctx;
MAY_LJMP(check_args(L, 3, "connect"));
*/
task_wakeup(socket->s->task, TASK_WOKEN_INIT);
+ hlua = hlua_gethlua(L);
+ appctx = objt_appctx(socket->s->si[0].end);
+ if (!hlua_com_new(hlua, &appctx->ctx.hlua.wake_on_write))
+ WILL_LJMP(luaL_error(L, "out of memory"));
WILL_LJMP(hlua_yieldk(L, 0, 0, hlua_socket_connect_yield, TICK_ETERNITY, 0));
return 0;