1.在Python的socket中,除了accept会阻塞,recv也会阻塞
如果客户端消息为空,则会发生阻塞
[En]
If the client message is empty, blocking occurs
解决阻塞的方法时在服务端用try except异常来处理
2.上午总结
基于Python 3.5的只能发送字节,Python 2.7的只发送字符串
拦截的前提是链路工作正常。
[En]
The premise of blocking is that the link works normally.
Original: https://blog.51cto.com/u_14754853/5533441
Author: wx5e6caa8b9792d
Title: day009_python socket简单交互
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/504609/
转载文章受原作者版权保护。转载请注明原作者出处!