commit 8dadd66ddef2d9320b0a60b9bf7881f42b127c93 parent 1c9fd1b90f875fbbf6d3f6f2c1a69fa7ce029210 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Sun, 12 Mar 2017 13:00:56 +0300 struct MHD_UpgradeResponseHandle: clarified comments Diffstat:
| M | src/microhttpd/internal.h | | | 16 | ++++++++++++---- |
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h @@ -1048,26 +1048,34 @@ struct MHD_UpgradeResponseHandle char *out_buffer; /** - * Size of the @e in_buffer. 0 if the connection went down for reading. + * Size of the @e in_buffer. + * Set to 0 if the TLS connection went down for reading or socketpair + * went down for writing. */ size_t in_buffer_size; /** - * Size of the @e out_buffer. 0 if the connection went down for writing. + * Size of the @e out_buffer. + * Set to 0 if the TLS connection went down for writing or socketpair + * went down for reading. */ size_t out_buffer_size; /** * Number of bytes actually in use in the @e in_buffer. Can be larger * than @e in_buffer_size if and only if @a in_buffer_size is zero and - * we still have bytes to process in the buffer. + * we still have bytes that can be forwarded. + * Reset to zero if all data was forwarded to socketpair or + * if socketpair went down for writing. */ size_t in_buffer_used; /** * Number of bytes actually in use in the @e out_buffer. Can be larger * than @e out_buffer_size if and only if @a out_buffer_size is zero and - * we still have bytes to process in the buffer. + * we still have bytes that can be forwarded. + * Reset to zero if all data was forwarded to TLS connection or + * if TLS connection went down for writing. */ size_t out_buffer_used;