当我使用以下脚本时... http://s3.jspenguin.org/ssltest.py
我收到此错误:
Connecting...
Sending Client Hello...
Waiting for Server Hello...
... received message: type = 22, ver = 0302, length = 66
... received message: type = 22, ver = 0302, length = 2924
... received message: type = 22, ver = 0302, length = 331
... received message: type = 22, ver = 0302, length = 4
Sending heartbeat request...
Traceback (most recent call last):
File "ssltepy", line 136, in <module>
main()
File "ssltest.py", line 132, in main
s.send(hb)
socket.error: [Errno 1] Operation not permitted
因此我将其包装在try
块中:
try:
s.send(hb)
except Exception as e:
print e
然后我得到了
[Errno 1] Operation not permitted
Traceback (most recent call last):
File "ssltest.py", line 139, in <module>
main()
File "ssltest.py", line 136, in main
hit_hb(s)
File "ssltest.py", line 84, in hit_hb
s.send(hb)
socket.error: [Errno 32] Broken pipe
我在Mac上停止了SYMANTEC,但没有成功。 我尝试了“ sudo python ssltest.py”,但是没有用。 而且我认为代码是正确的。 如何修复BROKEN PIPE错误?