A few TCP IO fixes.