-
Notifications
You must be signed in to change notification settings - Fork 23
feat(dgw): mDNS network scan support #693
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
Conversation
pauldumais
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.
Wow this is awesome, LGTM
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.
Nice! I’m blocking the merge because the retry loop logic seems erroneous to me. Can you double check?
| "polling 2.8.0", | ||
| "socket2 0.4.10", |
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.
issue (non-blocking): This crate is using outdated dependencies, and this causes dependency duplication. Do you think you could send a PR for updating them soonish? It’s okay to wait until you are done with implementing the feature first. If you don’t do it now, can you create a Jira ticket to not forget? Thank you.
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.
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.
created PR to mdsn-sd
| pub ping_interval: u64, // in milliseconds | ||
| pub ping_timeout: u64, // in milliseconds | ||
| pub broadcast_timeout: u64, // in milliseconds | ||
| pub port_scan_timeout: u64, // in milliseconds | ||
| pub netbios_timeout: u64, // in milliseconds | ||
| pub netbios_interval: u64, // in milliseconds | ||
| pub max_wait_time: u64, // max_wait for entire scan duration in milliseconds, suggested! | ||
| pub ping_interval: u64, // in milliseconds | ||
| pub ping_timeout: u64, // in milliseconds | ||
| pub broadcast_timeout: u64, // in milliseconds | ||
| pub port_scan_timeout: u64, // in milliseconds | ||
| pub netbios_timeout: u64, // in milliseconds | ||
| pub netbios_interval: u64, // in milliseconds | ||
| pub mdns_meta_query_timeout: u64, // in milliseconds | ||
| pub mdns_single_query_timeout: u64, // in milliseconds | ||
| pub max_wait_time: u64, // max_wait for entire scan duration in milliseconds, suggested! |
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.
thought: We should probably use the Duration type instead. Should be addressed separately.
Converted to draft to make it obvious. |
Co-authored-by: Benoît Cortier <[email protected]>
3682b54 to
027b9ab
Compare
CBenoit
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.
Thank you! Looks mostly good. I spotted two other issues which should be fixed, and then we can merge.
devolutions-gateway/src/api/mod.rs
Outdated
| .nest("/jet/config", config::make_router(state.clone())) | ||
| .nest("/jet/session", session::make_router(state.clone())) | ||
| .nest("/jet/sessions", sessions::make_router(state.clone())) | ||
| .nest("/jet/sessions", session::make_router(state.clone())) |
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.
issue: Any reason for this? This looks very problematic (creating the wrong router).
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.
this is a mistake, thank you for point it out!
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.
updated
Co-authored-by: Benoît Cortier <[email protected]>
CBenoit
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! 🚀
Merci! |
Add mdns to network scan, added some extra helper method for better readbility and maintainbility.
Open for review but needs to wait for the #689 to be merged first