reset stack on socket send()