Skip to content

Conversation

@dj3mu
Copy link
Contributor

@dj3mu dj3mu commented Feb 20, 2025

Fixing #2226 by using --connect-timeout 3 option with curl.

This will result in detecting "no internet" after at most 3 seconds.

If Internet is available, it should really be possible to contact GitHub within 3 seconds. Else Internet seems so bad that it should probably be considered "inavailable".

Ideally, also the call to runs/setup_network.sh should not be made at all from within the message processing code of subdata.py. At least not as long as the script can block multiple seconds or minutes.

curls seems to have a very long default timeout causing the whole subdata to hang when in secondary mode.
This is because setup_network.sh is called from line 630 of subdata.py - control path for "extern" openwb.
@LKuemmel LKuemmel requested a review from benderl February 24, 2025 11:03
@benderl benderl added this to the 2.1.7 milestone Feb 25, 2025
@benderl benderl added the bug Something isn't working label Feb 25, 2025
@benderl benderl self-assigned this Feb 25, 2025
@benderl benderl merged commit a8e976a into openWB:master Feb 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants