summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-23 12:41:03 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-05-23 12:41:52 +0200
commitd58f77ad52caa52e91cf698e60a5a43c5d870e84 (patch)
tree385d87092fe45e8c0b68595becb095cfd13f8fc2 /uhttpd.h
parent692cb27c49f9c543aef8f25f8c270a27ddec2a74 (diff)
relay: fix close handling
When the relay process has exited, close the connection as soon as no data can immediately be read from the socket anymore, and the read buffer has been emptied. This fixes timeouts with scripts that leave processes lingering around without closing their fds. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index d6b6985..59f1565 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -146,6 +146,7 @@ struct env_var {
struct relay {
struct ustream_fd sfd;
struct uloop_process proc;
+ struct uloop_timeout timeout;
struct client *cl;
bool process_done;