.
 add new unittest
 .
 fixbug: still data on just closed socket by using shutdown replacing close