summaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-06 09:31:43 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-06 09:31:43 +0100
commit0bdd2960707a8abb5d9e435d1313aec4cf264ab1 (patch)
tree3a79d0364a9c98a5c51f6d837c27a6a94b16247b /src/DabMod.cpp
parent0caa62dd6639ac3c3c8e62228f806240295d4ba7 (diff)
downloaddabmod-0bdd2960707a8abb5d9e435d1313aec4cf264ab1.tar.gz
dabmod-0bdd2960707a8abb5d9e435d1313aec4cf264ab1.tar.bz2
dabmod-0bdd2960707a8abb5d9e435d1313aec4cf264ab1.zip
Implement TCP input auto-reconnect
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 90751f6..80dc6b4 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -528,8 +528,12 @@ static run_modulator_state_t run_modulator(modulator_data& m)
*/
}
#endif // defined(HAVE_ZEROMQ)
- // No need to handle the TCP input in a special way to get SIGINT working,
- // because recv() will return with EINTR.
+ else if (dynamic_pointer_cast<InputTcpReader>(m.inputReader)) {
+ /* Same as for ZeroMQ */
+ }
+ else {
+ throw logic_error("Unhandled framesize==0!");
+ }
}
else {
etiLog.level(error) << "Input read error.";