summaryrefslogtreecommitdiff
path: root/lib/http_chunks.c
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2025-09-04 16:09:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2025-09-05 13:17:39 +0200
commit0b091328773c64e23f5c4739da74527093c6a5ab (patch)
tree570549ef3a2fd7c524d3e26299a15dec81549c55 /lib/http_chunks.c
parent4c0da282313be92bc608fbef3dc5e37618c53052 (diff)
websocket: handling of PONG framesHEADorigin/masterorigin/HEADmasterfor-upstream
The auto PONG frames were inserted into the connection at the time a PING had been decoded, irregardless if an upstream frame was just in the middle of being assembled. Add PONG frames only to the buffer if there is no frame currently assemebled and, if it is, set the control frame aside. This control frame is then added on the first opportunity of a "clean" send buffer. There is only a single control frame set aside at a time. This means a double PING will, when the PONG cannot be sent right away, only send the last PONG. I imagine this is fine. We want to prevent the endless buffering of PONG frames on a connection where the server sends but does no receives. Reported-by: Calvin Ruocco Fixes #16706 Closes #18479
Diffstat (limited to 'lib/http_chunks.c')
0 files changed, 0 insertions, 0 deletions