I just updated to Xcode 8 and iOS 10.
After creating a build, I'm running into an error which I think is contributing to some data not getting fetched.
I don't know where to go from here, but it appears to be related to http calls somehow. Either way, I don't like the looks of these errors and need to get to the bottom of things.
In the log I get:
[] nw_connection_write_close 9 Connection is not ready, sending error callback
[] __tcp_connection_write_eof_block_invoke Write close callback received error: [57] Socket is not connected
What do these errors mean and how might I go about finding where to look?
Are these error reports related to the depreciation of NSURLConnection as of iOS 9?
(void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(nullable NSError *)error;
or with old NSURLConnection:- (void) connection:(NSURLConnection*) connection didFailWithError:(NSError*) error
. I have tested this with both old and new NSURLSessionStreamTask. The issue in my case was raised when reading from InputStream - it returns 0 bytes. – Elaterid