socket: fixed pipe api