-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SetParam QUIC_PARAM_CONN_LOCAL_ADDRESS bind to undesired address #2033
Comments
This code path is one of the primary ones that needs to be improved to support #1946. For the specific issue of: "Set new local address" and if it succeeds I expect "get local address" to return what I just set, not always working, we can track that here. I took a look at the code and I don't see any reason why that'd happen. Would you be able to capture some logs for that scenario? |
For some reason, I could not use the following command to format the trace.
I think the version of msquic in CI and on my localhost is the same, Any ideas why it doesn't work? Anyway, I upload the babel txt zip file here: I also suspect the test case gets the local addr too early while address migration isn't completed. I will check more tomorrow. |
@qzhuyan any updates here? I have no idea why clog would be failing. Are you using the |
No, I am not using I have bumped the retry till 2s which I think it should be enough to let migration complete but still could reproduce the issue. I am now studying CLOG to see why Could you convert the attachment with |
quic_localport_wrong.log.gz look for
I guess CLOG does not do network byte order translation so |
Let me double check on the clog port reversal. If its not correct, that is a bug in the clog decoder. |
PR to fix the port reversal issue. |
@qzhuyan any updates on this issue? Since Thad fixed the port reversal issue, is there anything else this is tracking? |
#2051 only fix the port format issue in clog log I think. |
@qzhuyan what's the latest on this issue? Can we close it? |
I will retest with latest release and reopen if I could reproduce it. |
Describe the bug
Ater connection is established, set local addr to
127.0.0.1:50600
via API setparmThen get the local addr via API getparm.
sometimes we get different port other than
50600
such as50615
I have seen some retry mechanism (step port number) while binding port is unavailable but I think the correct the behaivor is return error instead.
Affected OS
Additional OS information
No response
MsQuic version
prerelease/1.6
Steps taken to reproduce bug
50600
127.0.0.1:50600
vianote,
Handle
is a connection handler.Expected behavior
In step 3. If binding addr is failed, it should return error instead
Actual outcome
In step 3. always return success while in step 5 sometimes we get a different addr other than
127.0.0.1:50600
such like127.0.0.1:50615
Additional details
No response
The text was updated successfully, but these errors were encountered: