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
d7a8d67d
Commit
d7a8d67d
authored
Nov 13, 2011
by
Reinhard Tartler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imported nxcomp-3.1.0-6.tar.gz
Summary: Imported nxcomp-3.1.0-6.tar.gz Keywords: Imported nxcomp-3.1.0-6.tar.gz into Git repository
parent
3e924126
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
29 deletions
+29
-29
CHANGELOG
nxcomp/CHANGELOG
+12
-0
Control.cpp
nxcomp/Control.cpp
+1
-1
Loop.cpp
nxcomp/Loop.cpp
+4
-4
Proxy.cpp
nxcomp/Proxy.cpp
+11
-23
ServerProxy.cpp
nxcomp/ServerProxy.cpp
+1
-1
No files found.
nxcomp/CHANGELOG
View file @
d7a8d67d
ChangeLog
:
nxcomp
-
3.1.0
-
6
-
Always
use
a
timeout
of
50
ms
to
update
the
congestion
counter
.
nxcomp
-
3.1.0
-
5
-
Solve
the
possible
deadlock
caused
by
both
proxies
running
out
of
tokens
at
the
same
time
.
-
In
ServerProxy
::
handleCheckDrop
()
copy
the
list
since
the
function
can
delete
the
elements
.
nxcomp
-
3.1.0
-
4
-
Classes
ProxyReadBuffer
and
ServerReadBuffer
returned
an
invalid
...
...
nxcomp/Control.cpp
View file @
d7a8d67d
...
...
@@ -94,7 +94,7 @@
// the proxy is idle for this time.
//
#define IDLE_TIMEOUT 0
#define IDLE_TIMEOUT
5
0
//
// Close X connection if can't write before this
...
...
nxcomp/Loop.cpp
View file @
d7a8d67d
...
...
@@ -12745,7 +12745,7 @@ int SetLinkIsdn()
control
->
SplitTimeout
=
50
;
control
->
MotionTimeout
=
20
;
control
->
IdleTimeout
=
2
0
;
control
->
IdleTimeout
=
5
0
;
control
->
PackMethod
=
PACK_ADAPTIVE
;
control
->
PackQuality
=
5
;
...
...
@@ -12775,7 +12775,7 @@ int SetLinkAdsl()
control
->
SplitTimeout
=
50
;
control
->
MotionTimeout
=
10
;
control
->
IdleTimeout
=
1
0
;
control
->
IdleTimeout
=
5
0
;
control
->
PackMethod
=
PACK_ADAPTIVE
;
control
->
PackQuality
=
7
;
...
...
@@ -12805,7 +12805,7 @@ int SetLinkWan()
control
->
SplitTimeout
=
50
;
control
->
MotionTimeout
=
5
;
control
->
IdleTimeout
=
5
;
control
->
IdleTimeout
=
5
0
;
control
->
PackMethod
=
PACK_ADAPTIVE
;
control
->
PackQuality
=
9
;
...
...
@@ -12835,7 +12835,7 @@ int SetLinkLan()
control
->
SplitTimeout
=
50
;
control
->
MotionTimeout
=
0
;
control
->
IdleTimeout
=
0
;
control
->
IdleTimeout
=
5
0
;
control
->
PackMethod
=
PACK_ADAPTIVE
;
control
->
PackQuality
=
9
;
...
...
nxcomp/Proxy.cpp
View file @
d7a8d67d
...
...
@@ -3647,32 +3647,20 @@ int Proxy::handlePing()
if
(
diffPing
>=
(
control
->
PingTimeout
-
control
->
LatencyTimeout
*
5
))
{
if
(
tokens_
[
token_control
].
remaining
>
0
)
{
#if defined(TEST) || defined(INFO) || defined(PING)
*
logofs
<<
"Proxy: Sending a new ping at "
<<
strMsTimestamp
()
<<
" with "
<<
tokens_
[
token_control
].
remaining
<<
" tokens and elapsed in "
<<
diffIn
<<
" out "
<<
diffOut
<<
" ping "
<<
diffPing
<<
".
\n
"
<<
logofs_flush
;
#endif
if
(
handleFrame
(
frame_ping
)
<
0
)
{
return
-
1
;
}
timeouts_
.
pingTs
=
nowTs
;
}
#if defined(TEST) || defined(INFO) || defined(PING)
else
*
logofs
<<
"Proxy: Sending a new ping at "
<<
strMsTimestamp
()
<<
" with "
<<
tokens_
[
token_control
].
remaining
<<
" tokens and elapsed in "
<<
diffIn
<<
" out "
<<
diffOut
<<
" ping "
<<
diffPing
<<
".
\n
"
<<
logofs_flush
;
#endif
if
(
handleFrame
(
frame_ping
)
<
0
)
{
*
logofs
<<
"Proxy: WARNING! Can't send a new ping "
<<
"with no tokens and elapsed in "
<<
diffIn
<<
" out "
<<
diffOut
<<
" ping "
<<
diffPing
<<
".
\n
"
<<
logofs_flush
;
return
-
1
;
}
#endif
timeouts_
.
pingTs
=
nowTs
;
}
#if defined(TEST) || defined(INFO) || defined(PING)
else
...
...
nxcomp/ServerProxy.cpp
View file @
d7a8d67d
...
...
@@ -410,7 +410,7 @@ int ServerProxy::handleNewXConnectionFromProxy(int channelId)
int
ServerProxy
::
handleCheckDrop
()
{
T_list
&
channelList
=
activeChannels_
.
get
List
();
T_list
channelList
=
activeChannels_
.
copy
List
();
for
(
T_list
::
iterator
j
=
channelList
.
begin
();
j
!=
channelList
.
end
();
j
++
)
...
...
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