summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-03 17:03:49 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-03 17:03:49 +0100
commitb7c85a2819b3869279a669d5681f574824589c6c (patch)
treeda6639a596bd4d802ce1838582d6a86deac62be6 /uhttpd.h
parent12931edab795b7caeb70323e2959b5e5503c5980 (diff)
implement proper flow control for relaying postdata
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index 5ec0f00..3cd040d 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -144,6 +144,8 @@ struct dispatch {
void (*write_cb)(struct client *cl);
void (*close_fds)(struct client *cl);
void (*free)(struct client *cl);
+ bool data_blocked;
+
union {
struct {
struct blob_attr **hdr;
@@ -208,6 +210,7 @@ void __printf(4, 5)
uh_client_error(struct client *cl, int code, const char *summary, const char *fmt, ...);
void uh_handle_request(struct client *cl);
+void client_poll_post_data(struct client *cl);
void uh_auth_add(const char *path, const char *user, const char *pass);
bool uh_auth_check(struct client *cl, struct path_info *pi);