Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
dgram: remove unreachable connectState assign#38590
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
pd4d10 commented May 8, 2021 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
pd4d10 commented May 8, 2021
Another thing which needs to check is that calling AFAICT it doesn't, but it is better to check again in the code review. |
nodejs-github-bot commented Dec 24, 2021
oyyd commented Dec 27, 2021
@pd4d10 Can you rebase against master? (so that we might have luck to get a green CI) |
nodejs-github-bot commented Dec 27, 2021
aduh95 commented Jan 5, 2022
It looks like there are some relevant CI failure. Also could you rebase instead of marging? Merge commits tend to break our tooling. |
nodejs-github-bot commented Jan 5, 2022
nodejs-github-bot commented Jan 6, 2022
nodejs-github-bot commented Jan 17, 2022
nodejs-github-bot commented Jan 18, 2022
oyyd commented Jan 20, 2022
The CI is green now. /cc @nodejs/dgram for more reviews. |
mcollina left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
nodejs-github-bot commented Jan 20, 2022
Landed in 5753eb1 |
PR-URL: #38590 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: nodejs#38590 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #38590 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #38590 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #38590 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #38590 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
isConnected()returnstrueimplies thatremoteAddress()doesn't throw an error. The implementation ofremoteAddressis as follows:node/lib/dgram.js
Lines 770 to 775 in 29f1b60
It also implies that
state.connectState === CONNECT_STATE_CONNECTED.So it seems not necessary to assign it again.