update pipe buffer