The stream parsing code ran for ~20 mins and Xcode crashed after 15 mins. Also fixed connections timing out.