bezzad / Downloader

Fast, cross-platform and reliable multipart downloader with asynchronous progress events for .NET applications.
MIT License
1.25k stars 193 forks source link

I need to implement happy eyeballs for IPV4 IPV6 dual stack protocol #159

Open dongzhaosheng73 opened 6 months ago

dongzhaosheng73 commented 6 months ago

I need to set up socketshttphandler to implement a policy for IPV6 preference or rollback to ipv4, and I wonder if the downloader can expose the relevant callbacks

dongzhaosheng73 commented 6 months ago

This is the happy eyeballs specification documentation https://datatracker.ietf.org/doc/html/rfc8305#page-4
This is implemented but requires setting up the httpmessagehandler https://github.com/jellyfin/jellyfin/blob/master/src/Jellyfin.Networking/HappyEyeballs/HttpClientExtension.cs

bezzad commented 5 months ago

Hi @dongzhaosheng73 The Downloader at this point does not support your need. You can use HttpClient instead of the Downloader. Thanks