I have a download service that I recently migrated to HTTP2. The service is built using NodeJS, and nginx is a proxy application server.
Shortly after switching to HTTP2, we discovered crashes in an iOS application that uses the download service. We found the following results:

With HTTP2 turned on, when loading large files (1 GB +), the application ran out of free time.
For the above image, we uploaded the same video 3 times - the first two times, http2 was turned on. For the third download, the only changes we made to the configuration were that http2 was disabled and the web server was restarted to reflect this.
This is similar to an error (memory leak) in iOS or AFNetworking, but we have not been able to fix it yet. Has anyone noticed anything like this? Is there a workaround?
Versions:
- nginx version: nginx / 1.10.0 (Ubuntu)
- Ubuntu 16.04.1
- iOS 10.2
- AFNetworking 3.1.0
Edit
It seems that AFNetworking is the culprit:


source share