Any way to abort a chunked HTTP response such that the receiving end knows an error occurred?
Hi all! When streaming an unknown-length response to the client, calling
WritableStream.abort()
will still gracefully end the stream, and so the client will not see any error. Instead, it'll just receive a truncated response. Is there any way to forcibly close the connection without concluding the stream, so that the other side can interpret this as an error? As it stands, streaming is very risky to use due to the potential for data corruption, but is also the only viable approach for large payloads.0 Replies