swagger-api/swagger-codegen

[swift] keep-alive not working

Open

#4333 aperta il 7 dic 2016

Vedi su GitHub
 (9 commenti) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: SwiftIssue: Bughelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

It looks like the way the Alamofire is implemented we loosing all of the keep-alive sessions because every request has it's own manager. Is there is a way to have keep-alive enabled that would greatly reduce latency on SSL connections. The code in question is this one https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift#L53

Guida contributor