tornado rise An operation was attempted on something that is not a socket

时间:2016-11-17 11:14:05

标签: windows tornado

    Traceback (most recent call last):
  File "tornado_runner.py", line 18, in <module>
    main()
  File "tornado_runner.py", line 15, in main
    IOLoop.instance().start()
  File "C:\Python27\lib\site-packages\tornado\ioloop.py", line 858, in start
    event_pairs = self._impl.poll(poll_timeout)
  File "C:\Python27\lib\site-packages\tornado\platform\select.py", line 63, in poll
    self.read_fds, self.write_fds, self.error_fds, timeout)
select.error: (10038, 'An operation was attempted on something that is not a socket

it looks like the issue was solved for a while now, https://github.com/tornadoweb/tornado/issues/1360 但是在过去的几天里,我开始在生产窗口环境中看到很多这样的错误。有没有人有线索?

1 个答案:

答案 0 :(得分:1)

我和你的问题一样,我到处搜索但在代码层找不到任何解决方案。 最后,我尝试通过在命令行中运行“netsh winsock reset”来重置我的Windows中的winsock,并且它可以工作。