Modified so each segment transfers on new socket.