Skip to content

    ← All posts

    Rare 502s that nobody can reproduce

    A Node.js API behind nginx or an ALB: Node.js closes its keep-alive connections after 5 s, the proxy keeps them for 60 s. On a test bench, 6 to 11 POSTs out of 460 end in a 502, nginx silently retries GETs, and the count drops to zero once the proxy closes first.

    Spotted an error, something to add?

    Tell me: I read every message and correct the article when needed.

    Your name only appears below the article with this consent, and only if the remark is used. Your address is never published.