You need to set last-modified headers. Check push module documentation.<br><br><br>Sergej<br><br><div class="gmail_quote">On Tue, Jun 8, 2010 at 6:34 PM, Alexander Kunz <span dir="ltr">&lt;<a href="mailto:akunz@ntmedia.de">akunz@ntmedia.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


  
  

<div bgcolor="#ffffff" text="#000000">
<br>
Hello,<br>
<br>
im am running nginx 0.8.38 with nginx_http_push_module. I receive all
new<br>
messages more than one time... I receive the messages 5 secounds (this
is my<br>
push_message_timeout time) so i think, the push module does not know
that the <br>
message is allready received...  How knows the push_module that the
message<br>
is already sent to one client?<br>
<br>
Any ideas how i can fix my setup, so that each client receive the
message only once time.<br>
<br>
This is my setup:<br>
<br>
              location = /broadcast/sub {<br>
                   default_type  text/json;<br>
                  set $push_channel_id $arg_channel;<br>
                  push_subscriber;<br>
                  push_subscriber_concurrency broadcast;<br>
                  push_channel_group broadcast;<br>
              }<br>
        <br>
              location = /broadcast/pub {<br>
                  set $push_channel_id $arg_channel;<br>
                  push_publisher;<br>
                  push_min_message_buffer_length 5;<br>
                  push_max_message_buffer_length 20;<br>
                  push_message_timeout 10s;<br>
                  push_channel_group broadcast;<br>
              }<br>
<br>
I send new messages with curl<br>
<br>
    $ch = curl_init($pub_url);<br>
    $data = array(&#39;status&#39; =&gt; $message);<br>
    curl_setopt($ch, CURLOPT_HTTPHEADER, Array(&quot;Content-Type:
text/json&quot;));<br>
    curl_setopt($ch, CURLOPT_POST, 1);<br>
    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));<br>
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br>
    $return = curl_exec($ch);<br>
    curl_close($ch);<br>
<br>
Thanks for any hints...<br>
<br>
Alexander<br>
<br>
<br>
<br>
<i></i><br>
<i></i><i><br>
</i><span><span><i></i><span><span></span></span></span></span>
</div>

<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br></blockquote></div><br>