changeset 1283:da1afebf57ef

DpdkUnidirectionalRawPacketWorker - bugfix
author Devel 1
date Thu, 09 Jul 2020 14:15:53 +0200
parents 636f73c0cb9f
children 8527e4c0f984
files stress-tester/src/main/java/com/passus/st/emitter/raw/DpdkUnidirectionalRawPacketWorker.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/emitter/raw/DpdkUnidirectionalRawPacketWorker.java	Thu Jul 09 14:14:36 2020 +0200
+++ b/stress-tester/src/main/java/com/passus/st/emitter/raw/DpdkUnidirectionalRawPacketWorker.java	Thu Jul 09 14:15:53 2020 +0200
@@ -177,7 +177,9 @@
 
     @Override
     protected void doClose0(UnidirectionalRawPacketChannelContext<DpdkAO> channelContext) {
-        flushBuffer();
+        if (bufferSize > 0) {
+            flushBuffer();
+        }
         synchronized (DpdkAO.class) {
             if (dpdkInitCalls > 0) {
                 dpdkInitCalls--;