We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b4a38c commit 3b495deCopy full SHA for 3b495de
executor/executor.go
@@ -204,7 +204,14 @@ func (e *Executor) monitor() {
204
if !e.shouldSendIPPacket(ippacket) {
205
continue
206
}
207
+
208
+ e.mx.Lock()
209
e.ipbuf.Write(ippacket)
210
+ l := e.ipbuf.Len()
211
+ e.mx.Unlock()
212
+ if l >= e.cfg.IPEvents.BufferSize {
213
+ go e.sendIPPackets()
214
+ }
215
216
case "dns":
217
if e.cfg.Engine.Analyze.DNS {
@@ -222,7 +229,14 @@ func (e *Executor) monitor() {
222
229
if !e.shouldSendDNSPacket(dnspacket) {
223
230
224
231
232
225
233
e.dnsbuf.Write(dnspacket)
234
+ l := e.dnsbuf.Len()
235
236
+ if l >= e.cfg.DNSEvents.BufferSize {
237
+ // do not wait for sending packets
238
+ go e.sendDNSPackets()
239
226
240
227
241
228
242
0 commit comments