From b62891ba696d9ff10eb1e3b03592935fa7ba91f2 Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Mon, 22 Dec 2008 05:10:11 +0000 Subject: [PATCH] * SSHSession.cpp (SSHSession::heartBeat): built-in installer periodically "pings" the other end to keep ssh session alive. This helps recreate state in the firewall state table if it is cleared when rules are reloaded, which in turn prevents installer from hanging. --- build_num | 2 +- doc/ChangeLog | 6 ++++++ src/gui/SSHSession.cpp | 1 + test/pf/objects-for-regression-tests.fwb | 7 +++++-- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/build_num b/build_num index 006bebda6..b5cc27cf8 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 704 +#define BUILD_NUM 705 diff --git a/doc/ChangeLog b/doc/ChangeLog index f531459ec..90037324f 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,5 +1,11 @@ 2008-12-21 vadim + * SSHSession.cpp (SSHSession::heartBeat): built-in installer + periodically "pings" the other end to keep ssh session alive. This + helps recreate state in the firewall state table if it is cleared + when rules are reloaded, which in turn prevents installer from + hanging. + * PolicyCompiler_pf.cpp (PolicyCompiler_pf::addDefaultPolicyRule): Deprecated options "generate commands for both in and out" and "pass all outgoing" in compiler for PF. Before, user could choose diff --git a/src/gui/SSHSession.cpp b/src/gui/SSHSession.cpp index fa10cc9db..d5fd7e783 100644 --- a/src/gui/SSHSession.cpp +++ b/src/gui/SSHSession.cpp @@ -387,6 +387,7 @@ void SSHSession::stopHeartBeat() void SSHSession::heartBeat() { if (fwbdebug) qDebug("SSHSession::heartBeat"); + proc->write("\n"); readFromStderr(); readFromStdout(); if (endOfCopy && closeStdin) diff --git a/test/pf/objects-for-regression-tests.fwb b/test/pf/objects-for-regression-tests.fwb index 58f9fbbce..765d1dfc5 100644 --- a/test/pf/objects-for-regression-tests.fwb +++ b/test/pf/objects-for-regression-tests.fwb @@ -13900,7 +13900,7 @@ - + @@ -14105,6 +14105,7 @@ + @@ -14120,7 +14121,7 @@ - + @@ -14143,6 +14144,7 @@ + @@ -14192,6 +14194,7 @@ +