Skip to content

Commit

Permalink
fix NSURLSession configuration (#2777)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin authored Nov 29, 2020
1 parent 21f2dff commit 42fe358
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ actual class ApolloHttpNetworkTransport(
)

private class DefaultDataTaskFactory(readTimeoutMillis: Long) : DataTaskFactory {
private val nsurlSession = NSURLSession.sessionWithConfiguration(NSURLSessionConfiguration().apply {
private val nsurlSession = NSURLSession.sessionWithConfiguration(NSURLSessionConfiguration.defaultSessionConfiguration().apply {
timeoutIntervalForRequest = readTimeoutMillis.toDouble()/1000
})

Expand Down

0 comments on commit 42fe358

Please sign in to comment.