Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does NSURLSession multiplex HTTP/2 requests from different sessions?

If an app creates two NSURLSession objects that request data from the same server (that supports HTTP/2), are the requests from both sessions multiplexed?

like image 221
ide Avatar asked Feb 14 '26 09:02

ide


1 Answers

I'm pretty sure the answer is no. The existence of certain settings in the session configuration that affect the actual connection behavior (pipelining, cellular access, and timeouts in particular) would make sharing a connection pool between sessions problematic at best.

like image 94
dgatwood Avatar answered Feb 16 '26 23:02

dgatwood



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!