Commit 60449056 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Introduce a HTC_S_JUNK return value

parent 5c0be22a
......@@ -1000,6 +1000,7 @@ task_func_t SES_Proto_Sess;
task_func_t SES_Proto_Req;
enum htc_status_e {
HTC_S_JUNK = -5,
HTC_S_CLOSE = -4,
HTC_S_TIMEOUT = -3,
HTC_S_OVERFLOW = -2,
......
......@@ -259,6 +259,10 @@ SES_RxReq(const struct worker *wrk, struct req *req, htc_complete_f *func)
return (HTC_S_OVERFLOW);
}
hs = func(req->htc);
if (hs == HTC_S_JUNK) {
WS_ReleaseP(req->htc->ws, req->htc->rxbuf_b);
return (HTC_S_JUNK);
}
if (hs == HTC_S_COMPLETE) {
/* Got it, run with it */
if (isnan(req->t_first))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment