lws_free_set_NULL(wsi->rxflow_buffer);
lws_free_set_NULL(wsi->trunc_alloc);
- if (wsi->u.hdr.ah)
- /* we're closing, losing some rx is OK */
- wsi->u.hdr.ah->rxpos = wsi->u.hdr.ah->rxlen;
-
/* we may not have an ah, but may be on the waiting list... */
lwsl_info("ah det due to close\n");
lws_header_table_detach(wsi, 0);
}
#endif
+ if (wsi->u.hdr.ah)
+ /* we're closing, losing some rx is OK */
+ wsi->u.hdr.ah->rxpos = wsi->u.hdr.ah->rxlen;
+
context = wsi->context;
pt = &context->pt[(int)wsi->tsi];
/* still somebody left who wants forced service? */
if (!lws_service_adjust_timeout(context, 1, pt->tid)) {
/* yes... come back again later */
- lwsl_debug("%s: done again\n", __func__);
+ //lwsl_debug("%s: done again\n", __func__);
}
return 0;
}
wsi->mode != LWSCM_HTTP_SERVING_ACCEPTED &&
wsi->mode != LWSCM_HTTP2_SERVING))
lws_header_table_detach(wsi, 1);
- else
- wsi->more_rx_waiting = 1;
}
break;
}