Skip to content

Commit 5b1c0d3

Browse files
niheelthakkar89keyurkarnik
authored andcommitted
173064680 Fix the data truncation issue
Updated the Source Request ‘on end’ event to ‘on data transform’ request’s ‘on end’ to avoid premature ending of source stream. This will fix the ‘ERR_STREAM_WRITE_AFTER_END’ error and data truncation issue in request payload, for large dataset requests.
1 parent 1d80afe commit 5b1c0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins-middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function subscribeToSourceRequestEvents(plugins, sourceRequest, sourceResponse,
482482
})
483483
},sourceRequest,sourceResponse)
484484

485-
sourceRequest.on('end', () => {
485+
ondata_request_transform.on('end', () => {
486486
onend_request_handlers(empty_buffer,
487487
function(err, result) {
488488
//opentracing

0 commit comments

Comments
 (0)