-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make I/O non-blocking, add --timeout parameter.
Thank you to DL9SEC for reporting a strange case. The IGate server cwop.aprs2.net has multiple IP addresses defined in DNS, and not all of them work. This causes aprs-weather-submit to hang. This commit converts all socket operations to non-blocking. I've also added a new --timeout parameter that can specify how many seconds the app will wait before trying the next IPv4/IPv6 address, or failing. The default is 15 seconds, because that sounded nice. This does add a few kilobytes to the compiled app, so I may wrap this in a `#ifdef ONLY_BLOCKING_IO` or something. I'm still wondering if this is major-enough change to warrant a bump of the version number to 2.0.0. Fixes: #12
- Loading branch information
1 parent
d7f3c04
commit 03cebdc
Showing
8 changed files
with
93 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters