{
struct appctx *appctx;
- DPRINTF(stderr, "registering handler %p for sc %p (was %p)\n", app, sc, sc_strm_task(sc));
-
appctx = appctx_new_here(app, sc->sedesc);
if (!appctx)
return NULL;
{
struct channel *ic = sc_ic(sc);
- DPRINTF(stderr, "%s: sc=%p, sc->state=%d ic->flags=%08x oc->flags=%08x\n",
- __FUNCTION__,
- sc, sc->state, ic->flags, sc_oc(sc)->flags);
-
if (ic->pipe) {
/* stop reading */
sc_need_room(sc);
{
struct channel *oc = sc_oc(sc);
- DPRINTF(stderr, "%s: sc=%p, sc->state=%d ic->flags=%08x oc->flags=%08x\n",
- __FUNCTION__,
- sc, sc->state, sc_ic(sc)->flags, oc->flags);
-
if (unlikely(sc->state != SC_ST_EST || (oc->flags & CF_SHUTW)))
return;
BUG_ON(!sc_appctx(sc));
- DPRINTF(stderr, "%s: sc=%p, sc->state=%d ic->flags=%08x oc->flags=%08x\n",
- __FUNCTION__,
- sc, sc->state, ic->flags, sc_oc(sc)->flags);
-
if (!ic->pipe) {
/* (re)start reading */
appctx_wakeup(__sc_appctx(sc));
BUG_ON(!sc_appctx(sc));
- DPRINTF(stderr, "%s: sc=%p, sc->state=%d ic->flags=%08x oc->flags=%08x\n",
- __FUNCTION__,
- sc, sc->state, sc_ic(sc)->flags, oc->flags);
-
if (unlikely(sc->state != SC_ST_EST || (oc->flags & CF_SHUTW)))
return;