MINOR: protocol: improve the proto->drain() API
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 10:26:12 +0000 (11:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 21:27:16 +0000 (22:27 +0100)
commit7f4bcc312d51f6ac659b2aeb5bb44b9b4c0d8621
tree57e45f7bec2fe55905c61db3a4e050f3f8f2f414
parenta593ec5bf4ac58e7489535eb256f4763ac8027ff
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
src/checks.c
src/proto_tcp.c
src/stream_interface.c