Score:0

Nginx: close connections that have been open for over an hour

us flag

I am using an Nginx server with debian 11 to offer download resources.

I need to reset client connections that have been open for over an hour.

Currently, I restart the Nginx service via a cron job every hour. This method is too aggressive and closes client connections that have been open for less than an hour.

I'm looking for a solution to gracefully close connections that have been open for over an hour without affecting other open connections.

Is there any Nginx configuration to give an expiration date/time to open connections so that they close immediately after they expire?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.