Commit a4c44d6e authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

do not discard messages which are waiting to be delivered under high publish load

parent 3fb374ed
......@@ -44,7 +44,7 @@ ngx_http_push_stream_ensure_qtd_of_messages_locked(ngx_http_push_stream_channel_
while (!ngx_queue_empty(&sentinel->queue) && ((channel->stored_messages > max_messages) || expired)) {
msg = (ngx_http_push_stream_msg_t *)ngx_queue_next(&sentinel->queue);
if (expired && ((msg->expires == 0) || (msg->expires > ngx_time()))) {
if (expired && ((msg->expires == 0) || (msg->expires > ngx_time()) || (msg->workers_ref_count > 0))) {
break;
}
......
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