Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
1d34b3ef
Unverified
Commit
1d34b3ef
authored
3 years ago
by
M. Mert Yildiran
Browse files
Options
Download
Email Patches
Plain Diff
Increase the OOM risk in exchange of less idle CPU usage
parent
f344bd26
fix/idle-cpu-usage
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tap/tcp_streams_map.go
+1
-1
tap/tcp_streams_map.go
with
1 addition
and
1 deletion
+1
-1
tap/tcp_streams_map.go
+
1
-
1
View file @
1d34b3ef
...
...
@@ -37,7 +37,7 @@ func (streamMap *tcpStreamMap) nextId() int64 {
func
(
streamMap
*
tcpStreamMap
)
closeTimedoutTcpStreamChannels
()
{
tcpStreamChannelTimeout
:=
GetTcpChannelTimeoutMs
()
for
{
time
.
Sleep
(
10
*
time
.
Millisecond
)
time
.
Sleep
(
10
00
*
time
.
Millisecond
)
_debug
.
FreeOSMemory
()
streamMap
.
streams
.
Range
(
func
(
key
interface
{},
value
interface
{})
bool
{
streamWrapper
:=
value
.
(
*
tcpStreamWrapper
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help