Skip to content

Commit

Permalink
timeouts tested, removed BEST_SPEED option
Browse files Browse the repository at this point in the history
  • Loading branch information
kyostiebi authored and garrettjstevens committed Oct 10, 2023
1 parent be378da commit 107acc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion packages/apollo-collaboration-server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ async function bootstrap() {
}),
)

// await app.listen(PORT)
const server = await app.listen(PORT)
server.headersTimeout = 24 * 60 * 60 * 1000 // one day
server.requestTimeout = 24 * 60 * 60 * 1000 // one day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,9 @@ export class FileStorageEngine implements StorageEngine {
return chunk
})

// eslint-disable-next-line @typescript-eslint/no-var-requires
const zlib = require('node:zlib')
// Check md5 checksum of saved file
const fileWriteStream = createWriteStream(tempFullFileName)
// const gz = createGzip({ level: zlib.constants.Z_BEST_SPEED }) // BEST_SPEED option must be used in order to process also FASTA files > 1 GB (in Node 18 onwards)
const gz = createGzip() // BEST_SPEED option must be used in order to process also FASTA files > 1 GB (in Node 18 onwards)
const gz = createGzip()
await pipeline(file.stream, gz, fileWriteStream)
this.logger.debug(`Compressed file: ${tempFullFileName}`)
const fileChecksum = hash.digest('hex')
Expand Down

0 comments on commit 107acc0

Please sign in to comment.