From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.49.85.105 with SMTP id g9csp55090qez; Thu, 10 Jan 2013 01:55:22 -0800 (PST) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncBCAKFDN66QKRBCFAXKDQKGQE4KYBGUI@googlegroups.com designates 10.49.62.164 as permitted sender) client-ip=10.49.62.164 Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncBCAKFDN66QKRBCFAXKDQKGQE4KYBGUI@googlegroups.com designates 10.49.62.164 as permitted sender) smtp.mail=rack-devel+bncBCAKFDN66QKRBCFAXKDQKGQE4KYBGUI@googlegroups.com; dkim=pass header.i=@googlegroups.com Received: from mr.google.com ([10.49.62.164]) by 10.49.62.164 with SMTP id z4mr47998727qer.34.1357811721883 (num_hops = 1); Thu, 10 Jan 2013 01:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:date:from:to:message-id :in-reply-to:references:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=d8huC4YPZra0gw83cM49bk9QY4qakLmXjLaopEI8ATQ=; b=rVt+XLu1KMicTZvDkFSnRJtkpM0dI9Minx+ZgbW1wVX9UeUetpsu3oTatWnNSnNH6e aaSSXzqXresr/XTYW5wR8JMNslY5MJFelLd3JPB88e7UsaYIAxtugeju3bO8HoTqhiZf hYgQ9D3qk3rZlmlEzE1QZRGY/gZBHnq3DSl1RD2rjxuZ9R7DmJZKMYxASQ1ifV70UpJ7 AoHrGsmbfOlPF8YzD2wgc2ZsteiJG3HQrU7jb1BQ9MNeUugCPTPqrYSuJU/e9MrpC5HL dHtKIUrVKyf5mbBzIexQRHO61yaFWJm5ZaVPwviMk13mPijPDvTWxrhoVM2piw2KVMFn PFeQ== X-Received: by 10.49.62.164 with SMTP id z4mr12904478qer.34.1357811721800; Thu, 10 Jan 2013 01:55:21 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.49.87.227 with SMTP id bb3ls1429149qeb.3.gmail; Thu, 10 Jan 2013 01:55:20 -0800 (PST) X-Received: by 10.49.116.139 with SMTP id jw11mr13011645qeb.12.1357811720389; Thu, 10 Jan 2013 01:55:20 -0800 (PST) Date: Thu, 10 Jan 2013 01:55:18 -0800 (PST) From: Ivan Aleksandrovich To: rack-devel@googlegroups.com Message-Id: In-Reply-To: References: <3dda6773-08f6-4c8c-9415-0eaffa938969@googlegroups.com> Subject: Re: SSE stops working after updating rack version to 1.4.3 MIME-Version: 1.0 X-Original-Sender: intale.a@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary="----=_Part_2900_9943736.1357811718880" ------=_Part_2900_9943736.1357811718880 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for an answer, raggi, but using latest version from sinatra/sinatra= =20 repo(master branch) and rack versions 1.4.3 and 1.4.2, didn't solve this=20 issue. But, yes, looks like the problem not in rack. Version 1.4.2 and=20 1.4.3 of rack containts security fixes, so, looks like, sinatra should be= =20 fixed due to latest changes in rack. =D1=87=D0=B5=D1=82=D0=B2=D0=B5=D1=80=D0=B3, 10 =D1=8F=D0=BD=D0=B2=D0=B0=D1= =80=D1=8F 2013 =D0=B3., 4:21:49 UTC+2 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE= =D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C raggi =D0=BD=D0=B0=D0=BF=D0=B8=D1=81= =D0=B0=D0=BB: > > https://github.com/sinatra/sinatra/issues/606 > > https://github.com/sinatra/sinatra/pull/603 > > On Jan 9, 2013, at 6:22 AM, Ivan Aleksandrovich >=20 > wrote: > > Hi there. I want to notice that after updating rack version from 1.4.1 to= =20 > 1.4.3 the simple implementation of SSE stoped working for me(see=20 > application example in the attachment). > Gem list when that example works: > > bundler (1.2.2) > daemons (1.1.8) > eventmachine (0.12.10) > haml (3.1.7) > rack (1.4.1) > rack-protection (1.2.0) > rake (10.0.2) > rubygems-bundler (1.1.0) > rvm (1.11.3.5) > sinatra (1.3.3) > thin (1.5.0) > tilt (1.3.3) > > Gem list when that example doesn't work: > bundler (1.2.2) > daemons (1.1.8) > eventmachine (0.12.10) > haml (3.1.7) > rack (1.4.3) > rack-protection (1.2.0) > rake (10.0.2) > rubygems-bundler (1.1.0) > rvm (1.11.3.5) > sinatra (1.3.3) > thin (1.5.0) > tilt (1.3.3) > > My environment: > - Ruby version is ruby 1.9.3p327 (2012-11-10 revision 37606)=20 > [x86_64-linux] > - Ubuntu 12.04 (precise) 64-bit, Linux 3.2.0-35-generic, GNOME 3.4.2 > - Firefox 18.0 > What do I mean by SSE doesn't work? - It tries to reconnect forever(with= =20 > delay of a few seconds which is default for EventSource implementation -= =20 > see http://www.w3.org/TR/eventsource/#the-eventsource-interface for me=20 > info, reconnection time option). You may see these reconnection retries i= n=20 > server logs or by opening "Network" tab in firebug > > > ------=_Part_2900_9943736.1357811718880 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thanks for an answer, raggi, but using latest version from sinatra/sina= tra repo(master branch) and rack versions 1.4.3 and 1.4.2, didn't solve thi= s issue. But, yes, looks like the problem not in rack. Version 1.4.2 and 1.= 4.3 of rack containts security fixes, so, looks like, sinatra should be fix= ed due to latest changes in rack.
=D1=87=D0=B5=D1=82=D0=B2=D0=B5=D1=80= =D0=B3, 10 =D1=8F=D0=BD=D0=B2=D0=B0=D1=80=D1=8F 2013 =D0=B3., 4:21:49 = UTC+2 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1= =8C raggi =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
https://github.= com/sinatra/sinatra/issues/606


On Jan 9, 2013,= at 6:22 AM, Ivan Aleksandrovich <inta...@gmail.com> wrote:=

Hi there. I want to notice that after u= pdating rack version from 1.4.1=20 to 1.4.3 the simple implementation of SSE stoped working for me(see=20 application example in the attachment).
Gem list when that example works= :

bundler (1.2.2)
daemons (1.1.8)
eventmachine (0.12.10)
ha= ml (3.1.7)
rack (1.4.1)
rack-protection (1.2.0)
rake (10.0.2)
r= ubygems-bundler (1.1.0)
rvm (1.11.3.5)
sinatra (1.3.3)
thin (1.5.0= )
tilt (1.3.3)

Gem list when that example doesn't work:
bundle= r (1.2.2)
daemons (1.1.8)
eventmachine (0.12.10)
haml (3.1.7)
r= ack (1.4.3)
rack-protection (1.2.0)
rake (10.0.2)
rubygems-bundler= (1.1.0)
rvm (1.11.3.5)
sinatra (1.3.3)
thin (1.5.0)
tilt (1.3.= 3)

My environment:
 - Ruby version is ruby 1.9.3p327 (2012-1= 1-10 revision 37606) [x86_64-linux]
 - Ubuntu 12.04 (precise) 64-bi= t, Linux 3.2.0-35-generic, GNOME 3.4.2
 - Firefox 18.0
What do I mean by SSE doesn't work? - It tries to reconnect forever(with=20 delay of a few seconds which is default for EventSource implementation - see http://www.w3.org/TR/eventsource/#the-eventsource-= interface for me=20 info, reconnection time option). You may see these reconnection retries=20 in server logs or by opening "Network" tab in firebug

------=_Part_2900_9943736.1357811718880--