changeset 1266:5cd5df14202d

FlowProcessor - support event.filterable()
author Devel 2
date Fri, 03 Jul 2020 09:04:17 +0200
parents 27a1eb5e8069
children 5e1269b93654
files stress-tester/src/main/java/com/passus/st/client/FlowProcessor.java
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/FlowProcessor.java	Thu Jul 02 15:52:49 2020 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/FlowProcessor.java	Fri Jul 03 09:04:17 2020 +0200
@@ -334,8 +334,10 @@
         try {
             Object req = event.getRequest();
             if (req != null) {
-                if (filterChain.filterOutbound(req, event.getResponse(), flowContext) == Filter.DENY) {
-                    return;
+                if (event.filterable()) {
+                    if (filterChain.filterOutbound(req, event.getResponse(), flowContext) == Filter.DENY) {
+                        return;
+                    }
                 }
 
                 ByteBuff buffer = flowContext.buffer();
@@ -435,9 +437,6 @@
 
                 if (res > 0) {
                     data.skipBytes(res);
-                    if (logger.isDebugEnabled()) {
-                        debug(logger, flowContext, "Left " + data.readableBytes() + "B. ");
-                    }
                 }
 
                 long now = System.currentTimeMillis();