]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: applet: fix reporting of broken write situation
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2015 17:11:55 +0000 (19:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2015 19:16:02 +0000 (21:16 +0200)
commiteca572fe7ffc1fcbb05056449f6e56f5c40b14ac
tree13acf840a30b605d76e8dbf9e37b76b948e95f4a
parentaa977ba205c15bfebf217cf8d5be30459d11a7c1
BUG/MEDIUM: applet: fix reporting of broken write situation

If an applet tries to write to a closed connection, it hangs forever.
This results in some "get map" commands on the CLI to leave orphaned
connections alive.

Now the applet wakeup function detects that the applet still wants to
write while the channel is closed for reads, which is the equivalent
to the common "broken pipe" situation. In this case, an error is
reported on the stream interface, just as it happens with connections
trying to perform a send() in a similar situation.

With this fix the stats socket is properly released.
src/stream_interface.c