mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
4.6.2-production (#518)
This commit is contained in:
@@ -102,13 +102,13 @@ export function responseWriteController({
|
||||
readStream: any;
|
||||
}) {
|
||||
res.on('drain', () => {
|
||||
readStream.resume();
|
||||
readStream?.resume?.();
|
||||
});
|
||||
|
||||
return (text: string | Buffer) => {
|
||||
const writeResult = res.write(text);
|
||||
if (!writeResult) {
|
||||
readStream?.pause();
|
||||
readStream?.pause?.();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user