Revert "bugfix: assertion failed when connection reset by peer"

This reverts commit 6440a10cd24f348c3575c682d6839f737649a45a.

this bug fix has some problem
bugfix: connection reset by peer causes assertion failure