I cannot add a comment to your question(less points!) but i have some hint because my team is also facing the same problem which is intermittent using streams. We have raised a bug to the network team for the same. If possible try to log error, most probably you will getting an error "Stream ended Unexpectedly" in your debugger console. This may appear or may not appear.
Here is the similar code provided in apple documentation which is also having the same issue. https://developer.apple.com/library/ios/samplecode/SimpleURLConnections/Listings/PostController_m.html#//apple_ref/doc/uid/DTS40009245-PostController_m-DontLinkElementID_12