changeset 766:3931dbbb20f4

ReaderMain release content
author Devel 2
date Mon, 18 Dec 2017 08:55:14 +0100
parents 70b55498fb7e
children 68147f3215dd
files stress-tester/src/main/java/com/passus/st/ReaderMain.java
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/ReaderMain.java	Mon Dec 18 08:43:58 2017 +0100
+++ b/stress-tester/src/main/java/com/passus/st/ReaderMain.java	Mon Dec 18 08:55:14 2017 +0100
@@ -1,5 +1,8 @@
 package com.passus.st;
 
+import com.passus.data.DataSourceUtils;
+import com.passus.net.http.HttpRequest;
+import com.passus.net.http.HttpResponse;
 import com.passus.st.client.Event;
 import com.passus.st.client.SessionStatusEvent;
 import com.passus.st.client.http.HttpSessionPayloadEvent;
@@ -51,14 +54,18 @@
             printSessionInfo(payloadEvent.getSessionInfo());
             System.out.println(" payload: ");
 
-            if (payloadEvent.getRequest() != null) {
-                System.out.println(payloadEvent.getRequest());
+            HttpRequest req = payloadEvent.getRequest();
+            if (req != null) {
+                System.out.println(req);
                 System.out.println("");
+                DataSourceUtils.release(req.getContent());
             }
 
-            if (payloadEvent.getResponse() != null) {
-                System.out.println(payloadEvent.getResponse());
+            HttpResponse resp = payloadEvent.getResponse();
+            if (resp != null) {
+                System.out.println(resp);
                 System.out.println("");
+                DataSourceUtils.release(resp.getContent());
             }
         }
     }