twitter-archive / CocoaSPDY

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

Fix infinite loop when session disconnects. #114

Closed kgoodier closed 9 years ago

kgoodier commented 9 years ago

Latest refactoring in SPDYSessionManager changed how we allocate SPDYSessionPool instances. They are now created at init time and populated when needed, rather than being created and populated on-demand. Missed the old code that sets the pool to nil when the last session is removed from it, leading to an infinite loop in _fillSessionPool.