Closed solderain closed 10 years ago
Add something: Just test release version 0.3.4 Found client can receive the heartbeat data follow the interval time , but both the directive 'push_stream_ping_message_text' and 'push_stream_ping_message_text' set to the location 'HTTP' , that is different from the statement for release version 0.4.0 docement.
Hi @solderain
the default push_stream_message_template is just ~text~, and the ping message text default is an empty string.
try to set the push_stream_message_template as "~id~|~text~|\r\n", just to test.
About the keepalive on publisher it is controlled by the nginx now, you don't have to set a specific module directive, but since you set "keepalive_timeout 0;" the nginx disable the use of keepalive.
From the nginx docs "The first parameter sets a timeout during which a keep-alive client connection will stay open on the server side. The zero value disables keep-alive client connections."
@wandenberg ok . I will change my configuration follow that test at once .
Test against above config , the subscriber can receive the heartbeat data and the keepalive functionality work well by correcting the configuration . (But it is very interesting ,looks like the heartbeat don't work properly if you set directive push_stream_message_template to both location 'HTTP' and 'push_stream_subscriber' when use stream mode)
@solderain on the configuration you sent you never set the push_stream_message_template. Could you explain better what does not worked?
@wandenberg I just try to reproduce it but it didn't appear , maybe duo to my mistake configuration . I am sorry
Q1: I want to enable keep-alive functionality on push_stream_publisher , but i found that directive( push_stream_keepalive ) is no longer valid and cann't pass tesing , incredible push_stream_subscriber is enabled keepalive default (don't need to set keepalive directive) .
Q2: I found the client cann't receive the heatbeat data although have been set the directive 'push_stream_ping_message_text' and 'push_stream_ping_message_text'
using release version: 0.4.0
I am not sure if that cause by mistake configuration .Below is my configureation:
user nobody;
worker_processes 1;
error_log logs/error.log;
error_log logs/error.log notice;
error_log logs/error.log info;
pid logs/nginx.pid;
events { worker_connections 1024; use epoll; }
http {
include mime.types;