What other ways can one detect a lack of connection in Roadshow? #1

Closed
opened 2023-04-03 18:10:43 +00:00 by john · 2 comments
Owner

In Roadshow, bsdsocket.library is always available, so checking Socket Library Open for 0 won't work. How else can we detect that there's no internet connection without making a network request that fails?

  • Looking for interfaces?
  • Other?
In Roadshow, `bsdsocket.library` is always available, so checking `Socket Library Open` for `0` won't work. How else can we detect that there's no internet connection without making a network request that fails? * Looking for interfaces? * Other?
Author
Owner

Async Writing

  • Break down existing logic flow, make sure return values are all correct.
  • Test with timeout. Is the correct handling being done?
  • "Uninstall" Roadshow when done by moving bsdsocket.library out of the way.
## Async Writing * [ ] Break down existing logic flow, make sure return values are all correct. * [ ] Test with timeout. Is the correct handling being done? * [ ] "Uninstall" Roadshow when done by moving bsdsocket.library out of the way.
Author
Owner

Current solution:

  • Do a DNS check to a known remote server. This is how IBrowse first determines connectivity.
  • Attempt an initial connect with a reasonably sized timeout (5 seconds is probably enough). If that fails, you likely don't have a connection.
Current solution: * Do a DNS check to a known remote server. This is how IBrowse first determines connectivity. * Attempt an initial connect with a reasonably sized timeout (5 seconds is probably enough). If that fails, you likely don't have a connection.
john closed this issue 2023-04-11 13:31:29 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TheIndustriousRabbit/amos-pro-bsdsocket-extension#1
No description provided.