Unverified Commit 1d34b3ef authored by M. Mert Yildiran's avatar M. Mert Yildiran
Browse files

Increase the OOM risk in exchange of less idle CPU usage

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -37,7 +37,7 @@ func (streamMap *tcpStreamMap) nextId() int64 {
func (streamMap *tcpStreamMap) closeTimedoutTcpStreamChannels() {
tcpStreamChannelTimeout := GetTcpChannelTimeoutMs()
for {
time.Sleep(10 * time.Millisecond)
time.Sleep(1000 * time.Millisecond)
_debug.FreeOSMemory()
streamMap.streams.Range(func(key interface{}, value interface{}) bool {
streamWrapper := value.(*tcpStreamWrapper)
......
Supports Markdown
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