)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":597,"name":"Pete Zaitcev","email":"zaitcev@kotori.zaitcev.us","username":"zaitcev"},"change_message_id":"39c3eca18d261ac1885f21f88732df4090be8efc","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"fe0383d9_196260f0","updated":"2025-05-23 19:51:16.000000000","message":"This makes sense, but how did the tests work on Linux all this time?","commit_id":"3ff6b34a3bd4fee2a49189d37e6224462edad3a0"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"103595283fd99590110652f9c41809dabbcd0328","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"ff527ad2_14d1ac65","in_reply_to":"fe0383d9_196260f0","updated":"2025-05-23 20:33:09.000000000","message":"I think it must be something with eventlet? On Linux:\n```\n\u003e\u003e\u003e from swift.common.bufferedhttp import http_connect\n\u003e\u003e\u003e http_connect(\u0027localhost\u0027, 67890, \u0027dev\u0027, \u0027part\u0027, \u0027GET\u0027, \u0027/\u0027)\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n  File \"/vagrant/swift/swift/common/bufferedhttp.py\", line 248, in http_connect\n    return http_connect_raw(\n  File \"/vagrant/swift/swift/common/bufferedhttp.py\", line 286, in http_connect_raw\n    conn.endheaders()\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/green/http/client.py\", line 1301, in endheaders\n    self._send_output(message_body, encode_chunked\u003dencode_chunked)\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/green/http/client.py\", line 1089, in _send_output\n    self.send(msg)\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/green/http/client.py\", line 1018, in send\n    self.connect()\n  File \"/vagrant/swift/swift/common/bufferedhttp.py\", line 180, in connect\n    ret \u003d HTTPConnection.connect(self)\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/green/http/client.py\", line 989, in connect\n    self.sock \u003d self._create_connection(\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/green/socket.py\", line 63, in create_connection\n    raise err\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/green/socket.py\", line 53, in create_connection\n    sock.connect(sa)\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/greenio/base.py\", line 251, in connect\n    socket_checkerr(fd)\n  File \"/usr/local/lib/python3.8/dist-packages/eventlet/greenio/base.py\", line 50, in socket_checkerr\n    raise OSError(err, errno.errorcode[err])\nConnectionRefusedError: [Errno 111] ECONNREFUSED\n```\nBut on OS X:\n```\n\u003e\u003e\u003e from swift.common.bufferedhttp import http_connect\n\u003e\u003e\u003e http_connect(\u0027localhost\u0027, 67890, \u0027dev\u0027, \u0027part\u0027, \u0027GET\u0027, \u0027/\u0027)\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n  File \"/Users/tburke/Code/swift/swift/common/bufferedhttp.py\", line 248, in http_connect\n    return http_connect_raw(\n           ^^^^^^^^^^^^^^^^^\n  File \"/Users/tburke/Code/swift/swift/common/bufferedhttp.py\", line 286, in http_connect_raw\n    conn.endheaders()\n  File \"/Users/tburke/.pyenv/versions/swift312/lib/python3.12/site-packages/eventlet/green/http/client.py\", line 1301, in endheaders\n    self._send_output(message_body, encode_chunked\u003dencode_chunked)\n  File \"/Users/tburke/.pyenv/versions/swift312/lib/python3.12/site-packages/eventlet/green/http/client.py\", line 1089, in _send_output\n    self.send(msg)\n  File \"/Users/tburke/.pyenv/versions/swift312/lib/python3.12/site-packages/eventlet/green/http/client.py\", line 1018, in send\n    self.connect()\n  File \"/Users/tburke/Code/swift/swift/common/bufferedhttp.py\", line 180, in connect\n    ret \u003d HTTPConnection.connect(self)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/Users/tburke/.pyenv/versions/swift312/lib/python3.12/site-packages/eventlet/green/http/client.py\", line 989, in connect\n    self.sock \u003d self._create_connection(\n                ^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/Users/tburke/.pyenv/versions/swift312/lib/python3.12/site-packages/eventlet/green/socket.py\", line 44, in create_connection\n    for res in getaddrinfo(host, port, 0, SOCK_STREAM):\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/Users/tburke/.pyenv/versions/swift312/lib/python3.12/site-packages/eventlet/support/greendns.py\", line 567, in getaddrinfo\n    ai \u003d socket.getaddrinfo(addr, port, family,\n         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/Users/tburke/.pyenv/versions/3.12.9/lib/python3.12/socket.py\", line 978, in getaddrinfo\n    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsocket.gaierror: [Errno 8] nodename nor servname provided, or not known\n```\nMeanwhile, if I try to just use sockets directly (on either):\n```\n\u003e\u003e\u003e import socket\n\u003e\u003e\u003e s\u003dsocket.socket()\n\u003e\u003e\u003e s.connect((\u0027localhost\u0027, 67890))\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\nOverflowError: connect(): port must be 0-65535.\n```","commit_id":"3ff6b34a3bd4fee2a49189d37e6224462edad3a0"}]}
