Skip to content

Is this has a memory leaks ?  #1231

@ZhiqinYang

Description

@ZhiqinYang
func (b *recvBuffer) load() { b.mu.Lock() defer b.mu.Unlock() if len(b.backlog) > 0 { select { case b.c <- b.backlog[0]: b.backlog = b.backlog[1:] default: } } }

whether need to this :

 b.backlog[0] = nil b.backlog = b.backlog[1:] 

in transport/transport.go line 107

Metadata

Metadata

Assignees

Labels

Type: PerformancePerformance improvements (CPU, network, memory, etc)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions