Commit e70abe7d authored by Pavel Vainerman's avatar Pavel Vainerman

(LogSession): disable "keep alive message"

parent 7d757f77
......@@ -14,7 +14,7 @@
Name: libuniset2
Version: 2.3
Release: alt1
Release: alt2
Summary: UniSet - library for building distributed industrial control systems
License: LGPL
......@@ -486,6 +486,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# ..
%changelog
* Wed Apr 20 2016 Pavel Vainerman <pv@altlinux.ru> 2.3-alt2
- (LogSession): disable "keep alive message"
* Tue Apr 19 2016 Pavel Vainerman <pv@altlinux.ru> 2.3-alt1
- build new version
......
......@@ -529,9 +529,9 @@ void LogSession::onCheckConnectionTimer( ev::timer& watcher, int revents )
}
// если клиент уже отвалился.. то при попытке write.. сессия будет закрыта.
ostringstream err;
err << "logserver: ..keep alive message.." << endl;
logbuf.emplace(new UTCPCore::Buffer(std::move(err.str())));
// длинное сообщение ("keep alive message") забивает логи, что потом неудобно смотреть, поэтому пишем "пустоту"
logbuf.emplace(new UTCPCore::Buffer(""));
io.set(ev::WRITE);
checkConnectionTimer.start( checkConnectionTime ); // restart timer
}
......
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