In plumbing, a shock arrester is: