Fixes https://dev.openwrt.org/ticket/20458
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
dr = list_first_entry(&pending_requests, struct deferred_request, list);
list_del(&dr->list);
+ cl = dr->cl;
dr->called = true;
- uh_invoke_script(dr->cl, dr->d, dr->path ? &dr->pi : NULL);
+ cl->dispatch.data_blocked = false;
+ uh_invoke_script(cl, dr->d, dr->path ? &dr->pi : NULL);
+ client_poll_post_data(cl);
}
}
}
cl->dispatch.req_data = dr;
+ cl->dispatch.data_blocked = true;
dr->cl = cl;
dr->d = d;
list_add(&dr->list, &pending_requests);