Making tube fittings for connecting pipes