]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: conn_stream: add a new CS_FL_REOS flag
authorWilly Tarreau <w@1wt.eu>
Fri, 2 Mar 2018 11:25:45 +0000 (12:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Jul 2018 17:21:43 +0000 (19:21 +0200)
This flag indicates that the mux layer has already detected an end of
stream which will become CS_FL_EOS during a recv() once the rx buffer
is empty.

include/types/connection.h

index 9a57fce899c6da772e173f1669ce812ffff3590d..16a82bb57fb05a2a67fad2bd15bb1cc14c191621 100644 (file)
@@ -73,7 +73,8 @@ enum {
 
        CS_FL_ERROR         = 0x00000100,  /* a fatal error was reported */
        CS_FL_RCV_MORE      = 0x00000200,  /* more bytes to receive but not enough room */
-       CS_FL_EOS           = 0x00001000,  /* End of stream */
+       CS_FL_EOS           = 0x00001000,  /* End of stream delivered to data layer */
+       CS_FL_REOS          = 0x00002000,  /* End of stream received (buffer not empty) */
        CS_FL_WAIT_FOR_HS   = 0x00010000,  /* This stream is waiting for handhskae */
 };