Revert "Fixes sending issue when using async sockets."

This reverts commit 73325b5bfa9bbd8f98883273d7e62aaa37bd0cf1.