Commit 5bf38799 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

reducing the minimum amount of time that an object stays on trash before it is freed

parent ec9c3254
......@@ -36,7 +36,7 @@
#define NGX_HTTP_PUSH_STREAM_DEFAULT_SHM_SIZE 33554432 // 32 megs
#define NGX_HTTP_PUSH_STREAM_MESSAGE_BUFFER_CLEANUP_INTERVAL 5000 // 5 seconds
static time_t NGX_HTTP_PUSH_STREAM_DEFAULT_SHM_MEMORY_CLEANUP_OBJECTS_TTL = 30; // 30 seconds
static time_t NGX_HTTP_PUSH_STREAM_DEFAULT_SHM_MEMORY_CLEANUP_OBJECTS_TTL = 10; // 10 seconds
static time_t NGX_HTTP_PUSH_STREAM_DEFAULT_MESSAGE_TTL = 1800; // 30 minutes
#define NGX_HTTP_PUSH_STREAM_DEFAULT_HEADER_TEMPLATE ""
......
......@@ -54,8 +54,8 @@ describe "Setup Parameters" do
nginx_test_configuration(config).should include("max number of broadcast channels cannot be smaller than value in push_stream_broadcast_channel_max_qtd")
end
it "should not accept a value less than '30s' as shared memory cleanup objects ttl" do
nginx_test_configuration({:shared_memory_cleanup_objects_ttl => '15s'}).should include("memory cleanup objects ttl cannot't be less than 30.")
it "should not accept a value less than '10s' as shared memory cleanup objects ttl" do
nginx_test_configuration({:shared_memory_cleanup_objects_ttl => '5s'}).should include("memory cleanup objects ttl cannot't be less than 10.")
end
it "should accept a configuration without http block" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment