Will socket while loop recv occur into non-completion situation?

后端 未结 0 1359
野趣味
野趣味 2021-01-14 08:28

This is a code snippet of socket receive data:

import socket
...
response = b\'\'
temp = sock.recv(4096)
while temp:
  temp = sock.recv(4096)
  response += te         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题