Since v6.4.4, incoming file's ReadStream occassionaly hangs #103
-
I'm not sure how to pinpoint this Assume the following, which can basically be simplified into: req.multipart(async field => {
const readStream = field.file.stream
await new Promise((resolve, reject) => {
const writeStream = fs.createWriteStream('/path/to/dest')
writeStream.once('finish', resolve)
readStream.pipe(writeStream)
})
}) All I could tell is that, whenever that happens, Using the exact same code base, but on hyper-express v6.4.2, simply works every time 😕 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hey, could try periodically logging the |
Beta Was this translation helpful? Give feedback.
-
Adding to this again, https://github.com/BobbyWibowo/hyper-express-playground/blob/262ab615d9be0404e8d2a7d9aa441085914e6f0c/index.js |
Beta Was this translation helpful? Give feedback.
Hey, could try periodically logging the
Request.paused
property to detect if theRequest
is paused while it hangs? This may signify that there is an incorrect pausing/resuming behavior internally which causes this.