set pipe state when success opened.