Skip to content

Commit

Permalink
Fix crash when storing request with very large timeout interval
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 16, 2023
1 parent 6655c9d commit 9560169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Pulse/LoggerStore/LoggerStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ extension LoggerStore {
entity.allowsConstrainedNetworkAccess = request.options.contains(.allowsConstrainedNetworkAccess)
entity.httpShouldHandleCookies = request.options.contains(.httpShouldHandleCookies)
entity.httpShouldUsePipelining = request.options.contains(.httpShouldUsePipelining)
entity.timeoutInterval = Int32(request.timeout)
entity.timeoutInterval = Int32(clamping: Int.max)
entity.rawCachePolicy = UInt16(request.cachePolicy.rawValue)
requestsCache[request] = entity
return entity
Expand Down

0 comments on commit 9560169

Please sign in to comment.