diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-23 12:41:03 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-23 12:41:52 +0200 |
commit | d58f77ad52caa52e91cf698e60a5a43c5d870e84 (patch) | |
tree | 385d87092fe45e8c0b68595becb095cfd13f8fc2 /uhttpd.h | |
parent | 692cb27c49f9c543aef8f25f8c270a27ddec2a74 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |