Skip to content

Conversation

cheukt
Copy link
Member

@cheukt cheukt commented Apr 24, 2023

It seems like the previous SSL fix (RSDK-2203 - Update server hostname if address and auth_entity don't match by cheukt · Pull Request #242 · viamrobotics/viam-python-sdk ) introduced a subtle bug where we now look for a connection to the auth_entity instead of localhost during the connection phase. I found this by monkeypatching socket.getaddrinfo and seeing that the args have changed.

I found this issue while at a friend's apartment - not sure why this only doesn’t work in certain network configurations (the original code worked in the office and still works in my hotspot). Fix seems to be to pass server_hostname along as a different parameter

@cheukt cheukt requested a review from njooma April 24, 2023 21:28
@cheukt cheukt requested a review from a team as a code owner April 24, 2023 21:28
@cheukt cheukt requested a review from maximpertsov April 24, 2023 21:28
@cheukt cheukt merged commit 989e6a3 into viamrobotics:main Apr 25, 2023
@cheukt cheukt deleted the fix-weird-connection-issues branch April 25, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants