commit | 7f4bcc312d51f6ac659b2aeb5bb44b9b4c0d8621 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jan 20 11:26:12 2014 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jan 20 22:27:16 2014 +0100 |
tree | 57e45f7bec2fe55905c61db3a4e050f3f8f2f414 | |
parent | a593ec5bf4ac58e7489535eb256f4763ac8027ff [diff] |
MINOR: protocol: improve the proto->drain() API It was not possible to know if the drain() function had hit an EAGAIN, so now we change the API of this function to return : < 0 if EAGAIN was met = 0 if some data remain > 0 if a shutdown was received