socket stream repair