You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[lldb] When using Socket to listen on localhost:0 on systems supporting ipv4 and ipv6 the second socket to initialize will not update the listening address correctly after the call to bind.
This results in the second address listed in `Socket::GetListeningConnectionURI` to have port `:0`, which is incorrect.
To fix this, correct which address is used to detect the port and update the unit tests to cover this use case.
Additionally, I updated the SocketTest's to only parameterize tests that can work on ipv4 or ipv6. This means tests like `SocketTest::DecodeHostAndPort` are only run once, instead of twice since they do not change behavior based on parameters. I also included a new unit test to cover listening on `localhost:0`, validating both sockets correctly list the updated port.
0 commit comments