<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Thanks a lot Sergej, thats it.<br>
<br>
<br>
On 08.06.2010 20:08, Rapsey wrote:
<blockquote
cite="mid:AANLkTilnzI-qZcj9XtLdMKQFp3tVlpKJ4JIoEC7NZrIb@mail.gmail.com"
type="cite">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"><<a moz-do-not-send="true"
href="mailto:akunz@ntmedia.de">akunz@ntmedia.de</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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('status' => $message);<br>
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type:
text/json"));<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>
<br>
<i><br>
</i><span><span><span><span></span></span></span></span>
</div>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a moz-do-not-send="true" href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a moz-do-not-send="true"
href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<br>
</body>
</html>