]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux-h2: Fix h2s_make_data() comment about the return value
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Feb 2024 12:52:35 +0000 (13:52 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Feb 2024 12:57:44 +0000 (13:57 +0100)
2 return values are specified in the h2s_make_data() function comment. Both
are more or less equivalent but the later is probably more accurate. So,
keep the right one and remove the other one.

This patch should fix the issue #2175.

src/mux_h2.c

index 1dd886c0de104ae99644f1a8634dbc74fe9d23bc..609e1b53370e002c723e5f67ef08c49e4078075f 100644 (file)
@@ -6224,10 +6224,9 @@ static size_t h2s_snd_bhdrs(struct h2s *h2s, struct htx *htx)
 }
 
 /* Try to send a DATA frame matching HTTP response present in HTX structure
- * present in <buf>, for stream <h2s>. Returns the number of bytes sent. The
- * caller must check the stream's status to detect any error which might have
- * happened subsequently to a successful send. Returns the number of data bytes
- * consumed, or zero if nothing done.
+ * present in <buf>, for stream <h2s>. The caller must check the stream's status
+ * to detect any error which might have happened subsequently to a successful
+ * send. Returns the number of data bytes consumed, or zero if nothing done.
  */
 static size_t h2s_make_data(struct h2s *h2s, struct buffer *buf, size_t count)
 {