Skip to content

Commit

Permalink
Merge pull request #247 from podStation/fix#244__no-nginx-buffering-f…
Browse files Browse the repository at this point in the history
…or-comments

Fix #244: Disable buffer for comments
  • Loading branch information
daveajones authored Apr 1, 2023
2 parents 32d4c93 + 3ad4f0b commit 45cce47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ app.use('/api/comments/byepisodeid', async (req, res) => {
const cache = new InMemoryCache();
const fetcher = makeRateLimitedFetcher(fetch);

// Disable buffering in the nginx server so that the delivery of
// chunks are not delayed
res.setHeader('X-Accel-Buffering', 'no');

const sentCommenters = {};

const threadcap = await makeThreadcap(socialInteract[0].uri, { userAgent, cache, fetcher });
Expand Down

0 comments on commit 45cce47

Please sign in to comment.