[PULL v2 04/13] io/channel-socket: do not treat a zero length write as an error