Relaxation in shock waves