]> git.ipfire.org Git - thirdparty/curl.git/commit
ws: minor fixes for web sockets without the CONNECT_ONLY flag
authorPaul Seligman <pseligman@apple.com>
Fri, 7 Oct 2022 11:52:31 +0000 (07:52 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 9 Oct 2022 21:09:58 +0000 (23:09 +0200)
commitb261389dbad6d96c193f6885b216e358905b3ecc
tree0907ad8d4cce4fb792c381794eaa90837125792a
parentd905de276911ee5b0dae3feab9793dcb811cf30d
ws: minor fixes for web sockets without the CONNECT_ONLY flag

- Fixed an issue where is_in_callback was getting cleared when using web
  sockets with debug logging enabled
- Ensure the handle is is_in_callback when calling out to fwrite_func
- Change the write vs. send_data decision to whether or not the handle
  is in CONNECT_ONLY mode.
- Account for buflen not including the header length in curl_ws_send

Closes #9665
lib/sendf.c
lib/ws.c