摘要: if tcp_keepalive: # 启用KeepAlive选项 sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) # TCP_KEEPC... 阅读全文
posted @ 2014-07-24 10:04 puroc 阅读(940) 评论(0) 推荐(0) 编辑