fix several bug

1.Delete sockhash and pqueue.
2.Add idqueue.