title: Web Service calls no longer work in background when background audio mode is enabled on iOS10
body: <p>I have a music player here which fires a delegate method when a track is finished playing and calls a web service in the background to get the next track. </p>
  
  <p>Everything functions correctly up to the web service call (Delegate method fires, next track method is called). The network call, which uses NSURLSession, fails to get to the completion block and upon resume of the app (i.e the app re-entering the foreground state) enters the failed completion block and throws a socket error as follows: </p>
  
  <pre><code>nw_socket_get_input_frames recvmsg(fd 12, 1024 bytes): [57] Socket is not connected
  </code></pre>
  
  <p>This is new behaviour as of iOS10 and worked perfectly from iOS7-9. Can someone please advise as to whats changed and a potential solution? </p>