curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Deprecating 4 "wrong" RTMP protocol bits

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 10 Jun 2022 17:08:43 +0200 (CEST)

Hello,

I want to add two new protocols to libcurl soon (for websockets) but there is
no room left in the CURLOPT_PROTO bitmask within 32 bits.

The main reason there is no room left, in spite of curl only supporting 26
protocols, is that RTMP occupies *6* slots in that bitmask. I consider that a
mistake, but a mistake that is done in the public API so changing it is a bit
risky.

I want to move out four of the defines that we never should have added there
in the first place and I have a PR for it. See below.

I realize this goes against policies and API/ABI stability guidelines, but I
consider the risk to be minimal and the alternatives to be annoying and
painful.

   https://github.com/curl/curl/pull/8988

If anyone has a better idea on how to solve this challenge, then let me know!

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-06-10