Posts

Post not yet marked as solved
5 Replies
1.8k Views
Hi all, I'm facing a very strange problem in my application. In particular, using the application when a request receives a timeout message, all the following ones receive a timeout too (see screenshot). Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x28113a550 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://MY_SERVER_URL, NSErrorFailingURLKey=https://MY_SERVER_URL, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.} I'm not sure if this happens when the application enters the foreground after a background state since it's quite difficult to replicate. Based on what exposed, do you any clue why this can happen? additionally, is there a way to replicate a similar behavior in a consistent way? Waiting for a reply I thank you for your attention. Thanks, Lorenzo
Posted
by lboaro.
Last updated
.
Post not yet marked as solved
1 Replies
362 Views
Hi all, I'm facing a strange timeout problem in my application. I've opened another thread for that [Receiving "The request timed out." when using NSURLSession].(https://developer.apple.com/forums/thread/696762) Based on Xcode 13 Network Instruments, when a network request receives a timeout, all the subsequent ones receive the timeout too. Those requests are hitting the same host / domain that works with HTTP/1 (head of line blocking?). Instead, other request that do not involve this domain are working correctly. I've collected a trace but I cannot understand the meaning of "No Connection" and the red color of the box under inspection. Are you able to clarify their meaning and when this scenario could happen? Thanks, Lorenzo
Posted
by lboaro.
Last updated
.
Post marked as solved
2 Replies
312 Views
Hi all, I've collected a trace in order to understand deeper a problem that occurs in my application. After completing the trace I've noticed few flags above the timeline (see attachment). Are you able to tell me the meaning of those flags? What are the events they are related to? Thank you very much, Lorenzo
Posted
by lboaro.
Last updated
.