bf699e11 by David LaPalomento

Don't deliver segments that have been aborted

If an XHR times out, don't ever send the response bytes.
1 parent c140bf10
......@@ -204,6 +204,9 @@
if (remaining - value.bandwidth <= 0) {
// send the response body once all bytes have been delivered
setTimeout(function() {
if (request.aborted) {
return;
}
request.status = 200;
request.response = new Uint8Array(segmentSize * 0.125);
request.setResponseBody('');
......