reset PSOCK buffer properly