}
out:
- /* update all other flags and resync with the other side */
- si_applet_done(si);
-
- /* we don't want to expire timeouts while we're processing requests */
- si_ic(si)->rex = TICK_ETERNITY;
- si_oc(si)->wex = TICK_ETERNITY;
-
DPRINTF(stderr, "%s@%d: st=%d, rqf=%x, rpf=%x, rqh=%d, rqs=%d, rh=%d, rs=%d\n",
__FUNCTION__, __LINE__,
si->state, req->flags, res->flags, req->buf->i, req->buf->o, res->buf->i, res->buf->o);
res->flags |= CF_READ_NULL;
}
}
-
out:
- /* update all other flags and resync with the other side */
- si_applet_done(si);
-
- /* we don't want to expire timeouts while we're processing requests */
- si_ic(si)->rex = TICK_ETERNITY;
- si_oc(si)->wex = TICK_ETERNITY;
+ /* just to make gcc happy */ ;
}
si_ic(si)->flags |= CF_READ_NULL;
hlua_com_wake(&appctx->ctx.hlua.wake_on_read);
hlua_com_wake(&appctx->ctx.hlua.wake_on_write);
- goto leave;
+ return;
}
if (!(c->flags & CO_FL_CONNECTED))
- goto leave;
+ return;
/* This function is called after the connect. */
appctx->ctx.hlua.connected = 1;
/* Wake the tasks which wants to read if the buffer contains data. */
if (channel_is_empty(si_ic(si)))
hlua_com_wake(&appctx->ctx.hlua.wake_on_read);
-
- leave:
- si_applet_done(si);
}
/* This function is called when the "struct stream" is destroyed.
}
}
out:
- si_applet_done(si);
si_oc(si)->flags |= CF_READ_DONTWAIT;
- /* we don't want to expire timeouts while we're processing requests */
- si_ic(si)->rex = TICK_ETERNITY;
- si_oc(si)->wex = TICK_ETERNITY;
return;
full:
si->flags |= SI_FL_WAIT_ROOM;