commit | 630ef4585af1544b20bf5708f9fa8f5453e6ad25 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Aug 28 10:06:15 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Aug 28 10:28:24 2015 +0200 |
tree | 0e8fd3aa2cc87bff411c0501dda92d70e8ab76b9 | |
parent | a678b43119eb51c60330375c18741518bdef6d14 [diff] |
BUG/MEDIUM: lua: fix a segfault in txn:done() if called twice When called from an http ruleset, txn:done() can still crash the process because it closes the stream without consuming pending data resulting in the transaction's buffer representation to differ from the real buffer. This patch also adjusts the transaction's state to indicate that it's closed to be consistent with what's already done in redirect rules.