Added requeue and discard functionality to socket