Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About not using .handover but .interactive #2

Open
XueshiQiao opened this issue Apr 3, 2021 · 0 comments
Open

About not using .handover but .interactive #2

XueshiQiao opened this issue Apr 3, 2021 · 0 comments

Comments

@XueshiQiao
Copy link

XueshiQiao commented Apr 3, 2021

if multipath {
switch runCfg.multipathServiceVar {
case .aggregate:
config.multipathServiceType = URLSessionConfiguration.MultipathServiceType.aggregate
case .handover:
// Don't run handover here, but interactive instead
runCfg.multipathServiceVar = .interactive
config.multipathServiceType = URLSessionConfiguration.MultipathServiceType.interactive
case .interactive:
config.multipathServiceType = URLSessionConfiguration.MultipathServiceType.interactive

I found that when I using .handover multipath type in NSURLSessionStreamTask, it do not work well. for example, when I have Wifi and 5G, when I turn off Wifi, the connection will close, but works well in .interactive mode, it will use 5G instead of closing the connection.

And I found it works well when using NWConnection with configing its parameter's multipath type to be .handover.

I have search the world, only notice you avoid using .handover here (//Don't run handover here, but interactive instead ), have you encountered the same problem, do you find any resolution for this problem?

@XueshiQiao XueshiQiao changed the title Why not using .handover instead using .interactive? About not using .handover but .interactive Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant