In lua, the timeout that can be set on an Socket applet was applied on
client side and server side. In fact, it must only be applied on server
side, to apply a timeout on the connection. The client side is the applet.
This patch should fix the issue #3442. It must be backported to all
supported versions.
if (csk_ctx->timeout) {
s->sess->fe->timeout.connect = csk_ctx->timeout;
- s->scf->ioto = csk_ctx->timeout;
s->scb->ioto = csk_ctx->timeout;
}
s = appctx_strm(csk_ctx->appctx);
s->sess->fe->timeout.connect = tmout;
- s->scf->ioto = tmout;
s->scb->ioto = tmout;
s->task->expire = (tick_is_expired(s->task->expire, now_ms) ? 0 : s->task->expire);