jesec / rtorrent

stable, high-performance and low resource consumption BitTorrent client
GNU General Public License v2.0
192 stars 38 forks source link

DRAFT: Add http2 support #69

Open kannibalox opened 1 year ago

kannibalox commented 1 year ago

A bit of a work in progress, it really needs some commands for properly parameter setting, and a build flag.

Elegant996 commented 1 year ago

Feel like this would compliment rtorrent-ws. Not sure if that project assists with your implementation but the use of shared_lock/shared_mutex could provide increase performance?

kannibalox commented 1 year ago

This isn't a code change, rTorrent (even vanilla) supports HTTP/2 natively as long as curl is built with the right libraries. This simply bring support to the locally-built curl, and adds a couple curl options to make it take full advantage of HTTP/2's capabilities for announces. It should be able to co-exist with the websocket work without any changes.