re-init tcp server when encounter EBADF
Merge pull request #2131 from ulion/tcp_server_badf_reinit

re-init tcp server when encounter EBADF