Skip to content

Commit 9dd57ea

Browse files
committed
bp: reduce MOUNT_LISTEN_STREAM idle timeout to 2 minutes
Since this isn't the actual HTTP request timeout, but the timeout while no other process references this listener socket, we can reduce the timeout, which frees more RAM.
1 parent e6f0e5b commit 9dd57ea

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

debian/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cm4all-beng-proxy (21.18) unstable; urgency=low
22

33
* bp: discard MOUNT_LISTEN_STREAM processes under memory pressure
4+
* bp: reduce MOUNT_LISTEN_STREAM idle timeout to 2 minutes
45

56
--
67

src/net/ListenStreamStock.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class ListenStreamStock::Item final
167167
}
168168

169169
/* keep the process around for some time */
170-
idle_timer.Schedule(std::chrono::minutes{5});
170+
idle_timer.Schedule(std::chrono::minutes{2});
171171
}
172172

173173
void OnBroken() noexcept override {

0 commit comments

Comments
 (0)