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

Closed
fcicq opened this Issue Apr 28, 2013 · 0 comments

Comments

Projects
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/stack_context.py", line 239, in wrapped
    callback(*args, **kwargs)
  File "/opt/local/lib/python2.7/site-packages/tornado/concurrent.py", line 158, in <lambda>
    lambda future: callback(future.result()))
  File "/opt/local/lib/python2.7/site-packages/tornado/concurrent.py", line 129, in result
    raise_exc_info(self.__exc_info)
  File "/opt/local/lib/python2.7/site-packages/tornado/concurrent.py", line 138, in submit
    future.set_result(fn(*args, **kwargs))
  File "/opt/local/lib/python2.7/site-packages/tornado/netutil.py", 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