moonshawdo / checkgoogleip

主要是用来检查哪些IP可以用在goagent上面
Apache License 2.0
584 stars 241 forks source link

error: [Errno 10057] A request to send or receive data was disallowed because th e socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied #2

Closed ghost closed 10 years ago

ghost commented 10 years ago
Exception in thread Thread-141:
Traceback (most recent call last):
  File "C:\Downloads\goagent-3.0\local\python27.zip\threading.py", line 810, in
__bootstrap_inner
  File "C:\Downloads\goagent-3.0\local\checkip.py", line 238, in run
  File "C:\Downloads\goagent-3.0\local\checkip.py", line 222, in runJob
  File "C:\Downloads\goagent-3.0\local\checkip.py", line 201, in getssldomain
  File "C:\Downloads\goagent-3.0\local\python27.zip\ssl.py", line 292, in shutdo
wn
  File "C:\Downloads\goagent-3.0\local\python27.zip\socket.py", line 224, in met
h
error: [Errno 10057] A request to send or receive data was disallowed because th
e socket is not connected and (when sending on a datagram socket using a sendto
call) no address was supplied

try to collect ssl result
write to file C:\Downloads\goagent-3.0\local\ip.txt ok,count:0
Press any key to continue . . .

OS: windows xp sp3 Goagent Version: https://github.com/goagent/goagent/commit/e0c5b1ef8144fe832ee8fa2cfae29d566600098d Checkgoogleip Version: https://github.com/moonshawdo/checkgoogleip/commit/1434c475bf9676a42ef1117bd00e70d676193799

moonshawdo commented 10 years ago

已修复,原因:因为连接timeout,所以不能调用shutdown函数(这个函数是指关闭接收与发送通道)