twitter-archive / CocoaSPDY

SPDY for iOS and OS X
Apache License 2.0
2.39k stars 233 forks source link

Fix SPDYSessionManager reachability. #116

Closed kgoodier closed 9 years ago

kgoodier commented 9 years ago

Change bf69dc5 "Increase unit test coverage" introduced a bug to how we track current reachability (wifi, wwan) in SPDYSessionManager. It failed to pass the correct value when being updated via callback.

A lot of code here is unnecessary, so this change removes much of that in order to simplify. There are no more global variables or +initialize code. Each instance of SPDYSessionManager manages its own reachability now.

This also allows the new behavior of moving a session to the correct pool to be configurable.

NSProgrammer commented 9 years ago

+1

johnkdoe commented 9 years ago

+1