From ddd303309c1dcfff69fd79652958b9169377c104 Mon Sep 17 00:00:00 2001 From: ruitianzhong Date: Tue, 27 Feb 2024 19:17:02 +0800 Subject: [PATCH] fixed issue #492 * init tcPacketsChan in MTCProbe of GoTLSProbe * filled mod.name and mod.mType in probe_gotls.go::init() used for debugging Signed-off-by: ruitianzhong --- user/module/probe_gotls.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/user/module/probe_gotls.go b/user/module/probe_gotls.go index a3bd0ff13..c11479316 100644 --- a/user/module/probe_gotls.go +++ b/user/module/probe_gotls.go @@ -24,6 +24,8 @@ import ( func init() { mod := &GoTLSProbe{} + mod.name = ModuleNameGotls + mod.mType = ProbeTypeUprobe Register(mod) } @@ -107,6 +109,7 @@ func (g *GoTLSProbe) Init(ctx context.Context, l *log.Logger, cfg config.IConfig g.bootTime = uint64(bootTime) g.tcPackets = make([]*TcPacket, 0, 1024) + g.tcPacketsChan = make(chan *TcPacket, 2048) g.tcPacketLocker = &sync.Mutex{} g.masterKeyBuffer = bytes.NewBuffer([]byte{}) return nil