commit | 4428a29e52544894d631122b598deccd37e59804 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Nov 28 20:54:13 2014 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 24 23:47:32 2014 +0100 |
tree | 0e5c039dc1cfa6d49f42b2824602f6d7e02f48b9 | |
parent | f2f7d6b27bd01439e02f6d5260e440029822f3ff [diff] |
MEDIUM: channel: do not report full when buf_empty is present on a channel Till now we'd consider a buffer full even if it had size==0 due to pointing to buf.size. Now we change this : if buf_wanted is present, it means that we have already tried to allocate a buffer but failed. Thus the buffer must be considered full so that we stop trying to poll for reads on it. Otherwise if it's empty, it's buf_empty and we report !full since we may allocate it on the fly.