fix read socket return 0 and disconnect connection when buffer size is 0 bug