Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 2 replies, 0 views
Replied In
Crash By CFNetwork In iOS13
App May Execute this code many times, May this is the problem about this crash?
NSURL *url = [NSURL URLWithString:hostString];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[request setAllHTTPHeaderFields:header];
NSURLSessionConfiguration *sessionConfiguration = [NSURLSessionConfiguration defaultSessionConfiguration];
sessionConfiguration.timeoutIntervalForRequest = MAXFLOAT;
self.session = [NSURLSession sessionWithConfiguration:sessionConfiguration delegate:self delegateQueue:_operationQueue];
NSURLSessionWebSocketTask *webSocketTask = [self.session webSocketTaskWithRequest:request];