Change the line

This commit is contained in:
M. Mert Yildiran 2021-09-14 15:49:32 +03:00
parent a6f809db14
commit dfdf359e2e
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -218,8 +218,8 @@ func startMemoryProfiler() {
func closeTimedoutTcpStreamChannels() {
TcpStreamChannelTimeoutMs := GetTcpChannelTimeoutMs()
for {
_debug.FreeOSMemory()
time.Sleep(10 * time.Millisecond)
_debug.FreeOSMemory()
streams.Range(func(key interface{}, value interface{}) bool {
streamWrapper := value.(*tcpStreamWrapper)
stream := streamWrapper.stream