Commit 0d35c405 authored by Pavel Vainerman's avatar Pavel Vainerman

(Configuration): исправил ошибку в функции проверки доступности endPoint.

parent caa807e5
......@@ -511,6 +511,9 @@ rm -f %buildroot%_libdir/*.la
* Tue Sep 12 2017 Alexei Takaseev <taf@altlinux.org> 2.6-alt19.1
- Rebuild with poco 1.7.9
# * Sun May 28 2017 Pavel Vainerman <pv@altlinux.ru> 2.6-alt20
# - (Configuration): fixed bug in check endPoint function
* Thu May 25 2017 Pavel Vainerman <pv@altlinux.ru> 2.6-alt19
- MBSlave: Now does not terminate when socket is not open
- Configuration: Now does not terminate when endPoint is not available
......
......@@ -55,4 +55,6 @@ int main(int argc, char **argv)
Для параметра 'endPoint' встроена дополнительная проверка доступности указанной адреса.
\warning По умолчанию \b недоступность \b игнорируется, если не указан параметр \a error_if_not_available="1"
Помимо этого можно задать параметр \a ignore_checking="1", чтобы не происходило проверки доступности endPoint.
*/
\ No newline at end of file
......@@ -335,7 +335,7 @@ namespace uniset
if( p == "endPoint" )
{
const string param(omniIt.getProp("arg"));
bool endPointIsAvailable = checkOmniORBendPoint(param);
bool endPointIsAvailable = omniIt.getProp("ignore_checking").empty() ? checkOmniORBendPoint(param) : true;
// по умолчанию "недоступность" игнорируется
// но если указан параметр 'error_if_not_available'
......@@ -701,7 +701,7 @@ namespace uniset
bool ret = false;
try
{
bool ret = ep->Bind();
ret = ep->Bind();
if( ret )
ep->Shutdown();
}
......@@ -711,6 +711,10 @@ namespace uniset
ret = false;
}
ulogsys << "(Configuration::checkOmniORBendPoint): check " << endPoint << " "
<< ( ret ? "OK" : "FAILED" )
<< endl;
return ret;
}
// -------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment