bugfix unstable get_peername function issue

bugfix unstable get_peername function issue