Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
e70abe7d
Commit
e70abe7d
authored
Apr 20, 2016
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(LogSession): disable "keep alive message"
parent
7d757f77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
libuniset2.spec
conf/libuniset2.spec
+4
-1
LogSession.cc
src/Log/LogSession.cc
+3
-3
No files found.
conf/libuniset2.spec
View file @
e70abe7d
...
...
@@ -14,7 +14,7 @@
Name: libuniset2
Version: 2.3
Release: alt
1
Release: alt
2
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
...
...
src/Log/LogSession.cc
View file @
e70abe7d
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment