use readAllAsync for socket case too