[init] second initial code
[test] server should destory socket on bad type