getaddrinfo issue under solaris in tornado.netutil.ExecutorResolver #766

fcicq opened this Issue Apr 28, 2013 · 0 comments


None yet
1 participant

fcicq commented Apr 28, 2013

Tornado 3.0.1, using with tornado.websocket.websocket_connect and WebSocketClientConnection

WARNING:tornado.general:uncaught exception
Traceback (most recent call last):
  File "/opt/local/lib/python2.7/site-packages/tornado/", line 239, in wrapped
    callback(*args, **kwargs)
  File "/opt/local/lib/python2.7/site-packages/tornado/", line 158, in <lambda>
    lambda future: callback(future.result()))
  File "/opt/local/lib/python2.7/site-packages/tornado/", line 129, in result
  File "/opt/local/lib/python2.7/site-packages/tornado/", line 138, in submit
    future.set_result(fn(*args, **kwargs))
  File "/opt/local/lib/python2.7/site-packages/tornado/", line 211, in resolve
    addrinfo = socket.getaddrinfo(host, port, family)
gaierror: [Errno 9] service name not available for the specified socket type

passing socktype & proto would work.

addrinfo = socket.getaddrinfo(host, port, family, socket.SOCK_STREAM, 0)

bdarnell closed this in 520b02f Apr 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment