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