View | Details | Raw Unified | Return to bug 57449
Collapse All | Expand All

(-)src/core/org/apache/jmeter/samplers/DataStrippingSampleSender.java (-2 / +14 lines)
Lines 76-83 Link Here
76
        SampleResult result = event.getResult();
76
        SampleResult result = event.getResult();
77
        if(result.isSuccessful()) {
77
        if(result.isSuccessful()) {
78
            // Compute bytes before stripping
78
            // Compute bytes before stripping
79
            result.setBytes(result.getBytes());
79
            stipResponse(result);
80
            result.setResponseData(new byte[0]);
80
            // see Bug 57449
81
            for (SampleResult subResult : result.getSubResults()) {
82
                stipResponse(subResult);                
83
            }
81
        }
84
        }
82
        if(decoratedSender == null)
85
        if(decoratedSender == null)
83
        {
86
        {
Lines 94-99 Link Here
94
    }
97
    }
95
98
96
    /**
99
    /**
100
     * Strip response but fill in bytes field.
101
     * @param result {@link SampleResult}
102
     */
103
    protected void stipResponse(SampleResult result) {
104
        result.setBytes(result.getBytes());
105
        result.setResponseData(SampleResult.EMPTY_BA);
106
    }
107
108
    /**
97
     * Processed by the RMI server code; acts as testStarted().
109
     * Processed by the RMI server code; acts as testStarted().
98
     *
110
     *
99
     * @return this
111
     * @return this

Return to bug 57449