Refactor socket async write.