Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
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
dimbor
nx-libs
Commits
ca416e79
Commit
ca416e79
authored
Nov 13, 2011
by
Reinhard Tartler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imported nxcomp-3.3.0-4.tar.gz
Summary: Imported nxcomp-3.3.0-4.tar.gz Keywords: Imported nxcomp-3.3.0-4.tar.gz into Git repository
parent
95ce6b74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
21 deletions
+15
-21
CHANGELOG
nxcomp/CHANGELOG
+8
-0
ClientChannel.cpp
nxcomp/ClientChannel.cpp
+6
-20
Proxy.cpp
nxcomp/Proxy.cpp
+1
-1
No files found.
nxcomp/CHANGELOG
View file @
ca416e79
ChangeLog
:
nxcomp
-
3.3.0
-
4
-
Check
if
the
variable
storing
the
ping
time
exceeded
the
maximum
integer
value
.
-
Recover
incorrect
sequence
number
when
the
proxy
is
not
connected
to
an
agent
.
nxcomp
-
3.3.0
-
3
-
Removed
a
condition
in
ClientChannel
that
caused
a
loss
in
event
...
...
nxcomp/ClientChannel.cpp
View file @
ca416e79
...
...
@@ -4539,24 +4539,6 @@ int ClientChannel::handleWrite(const unsigned char *message, unsigned int length
lastSequence_
=
serverSequence_
;
}
}
/*
FIXME: This block was added, otherwise we have a loss
of the nxagent events.
*/
else
{
#ifdef DEBUG
*
logofs
<<
"handleWrite: Updating last event's sequence "
<<
lastSequence_
<<
" to X server's sequence number "
<<
serverSequence_
<<
" for FD#"
<<
fd_
<<
".
\n
"
<<
logofs_flush
;
#endif
lastSequence_
=
serverSequence_
;
}
/*
FIXME: This causes the loss of the nxagent events.
//
// Check if by producing events at client side we
...
...
@@ -4565,7 +4547,12 @@ FIXME: This causes the loss of the nxagent events.
// comply with the last one known by client.
//
if (serverSequence_ > lastSequence_)
/*
FIXME: Recover the sequence number if the proxy
is not connected to an agent.
*/
if
(
serverSequence_
>
lastSequence_
||
control
->
SessionMode
!=
session_proxy
)
{
#ifdef DEBUG
*
logofs
<<
"handleWrite: Updating last event's sequence "
...
...
@@ -4589,7 +4576,6 @@ FIXME: This causes the loss of the nxagent events.
<<
logofs_flush
;
}
#endif
*/
//
// Check if remote side used fast encoding.
...
...
nxcomp/Proxy.cpp
View file @
ca416e79
...
...
@@ -3645,7 +3645,7 @@ int Proxy::handlePing()
{
int
diffPing
=
diffTimestamp
(
timeouts_
.
pingTs
,
nowTs
);
if
(
diffPing
>=
(
control
->
PingTimeout
-
if
(
diffPing
<
0
||
diffPing
>=
(
control
->
PingTimeout
-
control
->
LatencyTimeout
*
5
))
{
#if defined(TEST) || defined(INFO) || defined(PING)
...
...
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