add socket test code
Merge remote-tracking branch 'origin/master'