]> git.ipfire.org Git - thirdparty/curl.git/commit
RTSP: improved RTP parser
authorStefan Eissing <stefan@eissing.org>
Sat, 7 Oct 2023 13:13:09 +0000 (15:13 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Oct 2023 12:38:21 +0000 (14:38 +0200)
commit7eb31c852dc50ab04fbdb0b56ef5a54fedcdd1e0
treef010423fcd44ececa2503da9d4c2009fd84e3847
parent117c9bd978fb953cf054abcd490c62082a9c690e
RTSP: improved RTP parser

- fix HTTP header parsing to report incomplete
  lines it buffers as consumed!
- re-implement the RTP parser for interleave RTP
  messages for robustness. It is now keeping its
  state at the connection
- RTSP protocol handler "readwrite" implementation
  now tracks if the response is before/in/after
  header parsing or "in" a bod by calling
  "Curl_http_readwrite_headers()" itself. This
  allows it to know when non-RTP bytes are "junk"
  or HEADER or BODY.
- tested with #12035 and various small receive
  sizes where current master fails

Closes #12052
lib/http.c
lib/rtsp.c
lib/rtsp.h
lib/transfer.c