transport-helper: use xread instead of read