Proxy issues

7 messages Options
Embed this post
Permalink
Á. Eduardo García

Proxy issues

Reply Threaded More More options
Print post
Permalink
Hi to all!

I know this is a list about Atmosphere, but maybe some of the gurus  
here could help me with an issue I'm having with my comet server (that  
I'm sure I'll have when I can change Grizzly to Atmosphere)

I have Glassfish (v3 b68) serving a Comet application using Jersey and  
Grizzly for the comet part. I have this configuration behind a reverse  
proxy (Squid) that helps me with cross side scripting issues among  
other things (like caching). The issue I'm getting is that I can only  
refresh my page a few times (3) before I start losing connections.  
After that, I lose one of each two request made to the Glassfish  
server. When stopping my proxy, in the log I can see some errors and  
closing of the lost connections (sometimes 504 from Glassfish and  
sometimes no error code at all). Also, refreshing the page enough  
times without reloading my proxy, I start to get 502 errors from some  
Jersey endpoints.

So before losing hours without end with this, does anyone have any  
idea? Does, at least, any of this make any sense??

Thanks in advance, anyway :)

Ángel Eduardo García Hernández
[hidden email]




Á. Eduardo García

Re: Proxy issues

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Strangely enough, it seems that trying to resume a connection causes this kind of issue. If I don't try to resume connections everything works fine, and after a while, the connections get closed when timing out, so it seems more of an Grizzly / Glassfish issue than a proxy one.

On 23 Oct 2009, at 20:01, Á. Eduardo García [via Atmosphere users mailling list] wrote:

Hi to all!

I know this is a list about Atmosphere, but maybe some of the gurus  
here could help me with an issue I'm having with my comet server (that  
I'm sure I'll have when I can change Grizzly to Atmosphere)

I have Glassfish (v3 b68) serving a Comet application using Jersey and  
Grizzly for the comet part. I have this configuration behind a reverse  
proxy (Squid) that helps me with cross side scripting issues among  
other things (like caching). The issue I'm getting is that I can only  
refresh my page a few times (3) before I start losing connections.  
After that, I lose one of each two request made to the Glassfish  
server. When stopping my proxy, in the log I can see some errors and  
closing of the lost connections (sometimes 504 from Glassfish and  
sometimes no error code at all). Also, refreshing the page enough  
times without reloading my proxy, I start to get 502 errors from some  
Jersey endpoints.

So before losing hours without end with this, does anyone have any  
idea? Does, at least, any of this make any sense??

Thanks in advance, anyway :)

Ángel Eduardo García Hernández
[hidden email]





Ángel Eduardo García Hernández




Jeanfrancois Arcand

Re: Proxy issues

Reply Threaded More More options
Print post
Permalink
In reply to this post by Á. Eduardo García
Salut,

Á. Eduardo García wrote:

> Hi to all!
>
> I know this is a list about Atmosphere, but maybe some of the gurus  
> here could help me with an issue I'm having with my comet server (that  
> I'm sure I'll have when I can change Grizzly to Atmosphere)
>
> I have Glassfish (v3 b68) serving a Comet application using Jersey and  
> Grizzly for the comet part. I have this configuration behind a reverse  
> proxy (Squid) that helps me with cross side scripting issues among  
> other things (like caching). The issue I'm getting is that I can only  
> refresh my page a few times (3) before I start losing connections.  
> After that, I lose one of each two request made to the Glassfish  
> server. When stopping my proxy, in the log I can see some errors and  
> closing of the lost connections (sometimes 504 from Glassfish and  
> sometimes no error code at all). Also, refreshing the page enough  
> times without reloading my proxy, I start to get 502 errors from some  
> Jersey endpoints.
>
> So before losing hours without end with this, does anyone have any  
> idea? Does, at least, any of this make any sense??

Can you send me you Grizzly Comet code (privately)? I would like to see
what you are doing in that code. Do you know if all requests reach your
CometHandler?

BTW I will reply to your private email soon.

Thanks

-- Jeanfrancois



>
> Thanks in advance, anyway :)
>
> Ángel Eduardo García Hernández
> [hidden email]
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880324&i=0>
>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Proxy issues
> <http://n2.nabble.com/Proxy-issues-tp3880324p3880324.html>
> Sent from the Atmosphere users mailling list mailing list archive
> <http://n2.nabble.com/Atmosphere-users-mailling-list-f2493822.html> at
> Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Jeanfrancois Arcand

Re: Proxy issues

Reply Threaded More More options
Print post
Permalink
In reply to this post by Á. Eduardo García
Salut,

Á. Eduardo García wrote:
> Strangely enough, it seems that trying to resume a connection causes
> this kind of issue. If I don't try to resume connections everything
> works fine, and after a while, the connections get closed when timing
> out, so it seems more of an Grizzly / Glassfish issue than a proxy one.

No sure :-) How do you resume a connection? Maybe the proxy still thinks
the connection is alive and try to send requests on it. One test you can
do is to add the Connection: Close header before resuming. That way
Grizzly will close the connection and the Proxy will automatically
re-open a new connection.

Thanks!

-- Jeanfrancois



>
> On 23 Oct 2009, at 20:01, Á. Eduardo García [via Atmosphere users
> mailling list] wrote:
>
>> Hi to all!
>>
>> I know this is a list about Atmosphere, but maybe some of the gurus  
>> here could help me with an issue I'm having with my comet server (that  
>> I'm sure I'll have when I can change Grizzly to Atmosphere)
>>
>> I have Glassfish (v3 b68) serving a Comet application using Jersey and  
>> Grizzly for the comet part. I have this configuration behind a reverse  
>> proxy (Squid) that helps me with cross side scripting issues among  
>> other things (like caching). The issue I'm getting is that I can only  
>> refresh my page a few times (3) before I start losing connections.  
>> After that, I lose one of each two request made to the Glassfish  
>> server. When stopping my proxy, in the log I can see some errors and  
>> closing of the lost connections (sometimes 504 from Glassfish and  
>> sometimes no error code at all). Also, refreshing the page enough  
>> times without reloading my proxy, I start to get 502 errors from some  
>> Jersey endpoints.
>>
>> So before losing hours without end with this, does anyone have any  
>> idea? Does, at least, any of this make any sense??
>>
>> Thanks in advance, anyway :)
>>
>> Ángel Eduardo García Hernández
>> [hidden email]
>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880324&i=0>
>>
>>
>>
>>
>
> Ángel Eduardo García Hernández
> [hidden email]
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880527&i=1>
>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Proxy issues
> <http://n2.nabble.com/Proxy-issues-tp3880324p3880527.html>
> Sent from the Atmosphere users mailling list mailing list archive
> <http://n2.nabble.com/Atmosphere-users-mailling-list-f2493822.html> at
> Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Á. Eduardo García

Re: Proxy issues

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanfrancois Arcand
Some javascript/style in this post has been disabled (why?)
Thanks a lot for your concern. I'm not having this problem anymore, as I said in my reply. The problem was trying to resume a connection with resumeCometHandler(), don't know why. Right now I'm using removeCometHandler() and after some time the connection is closed.

On 26 Oct 2009, at 15:31, Jeanfrancois Arcand [via Atmosphere users mailling list] wrote:

Salut,

Á. Eduardo García wrote:

> Hi to all!
>
> I know this is a list about Atmosphere, but maybe some of the gurus  
> here could help me with an issue I'm having with my comet server (that  
> I'm sure I'll have when I can change Grizzly to Atmosphere)
>
> I have Glassfish (v3 b68) serving a Comet application using Jersey and  
> Grizzly for the comet part. I have this configuration behind a reverse  
> proxy (Squid) that helps me with cross side scripting issues among  
> other things (like caching). The issue I'm getting is that I can only  
> refresh my page a few times (3) before I start losing connections.  
> After that, I lose one of each two request made to the Glassfish  
> server. When stopping my proxy, in the log I can see some errors and  
> closing of the lost connections (sometimes 504 from Glassfish and  
> sometimes no error code at all). Also, refreshing the page enough  
> times without reloading my proxy, I start to get 502 errors from some  
> Jersey endpoints.
>
> So before losing hours without end with this, does anyone have any  
> idea? Does, at least, any of this make any sense??
Can you send me you Grizzly Comet code (privately)? I would like to see
what you are doing in that code. Do you know if all requests reach your
CometHandler?

BTW I will reply to your private email soon.

Thanks

-- Jeanfrancois



>
> Thanks in advance, anyway :)
>
> Ángel Eduardo García Hernández
> [hidden email]
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880324&i=0>
>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Proxy issues
> <http://n2.nabble.com/Proxy-issues-tp3880324p3880324.html>
> Sent from the Atmosphere users mailling list mailing list archive
> <http://n2.nabble.com/Atmosphere-users-mailling-list-f2493822.html> at
> Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Ángel Eduardo García Hernández




Jeanfrancois Arcand

Re: Proxy issues

Reply Threaded More More options
Print post
Permalink


Á. Eduardo García wrote:
> Thanks a lot for your concern. I'm not having this problem anymore, as I
> said in my reply. The problem was trying to resume a connection with
> resumeCometHandler(), don't know why. Right now I'm using
> removeCometHandler() and after some time the connection is closed.

Oh! Just to make sure you are aware, I wrote the Grizzly Comet Framework
:-) I'm surprised the removeCometHandler works but not
resumeCometHandler. If you can share a test case, I can take a look.

But don't want to gives you more work :-)

A+

-- Jeanfrancois


>
> On 26 Oct 2009, at 15:31, Jeanfrancois Arcand [via Atmosphere users
> mailling list] wrote:
>
>> Salut,
>>
>> Á. Eduardo García wrote:
>>
>> > Hi to all!
>> >
>> > I know this is a list about Atmosphere, but maybe some of the gurus  
>> > here could help me with an issue I'm having with my comet server
>> (that  
>> > I'm sure I'll have when I can change Grizzly to Atmosphere)
>> >
>> > I have Glassfish (v3 b68) serving a Comet application using Jersey
>> and  
>> > Grizzly for the comet part. I have this configuration behind a
>> reverse  
>> > proxy (Squid) that helps me with cross side scripting issues among  
>> > other things (like caching). The issue I'm getting is that I can only  
>> > refresh my page a few times (3) before I start losing connections.  
>> > After that, I lose one of each two request made to the Glassfish  
>> > server. When stopping my proxy, in the log I can see some errors and  
>> > closing of the lost connections (sometimes 504 from Glassfish and  
>> > sometimes no error code at all). Also, refreshing the page enough  
>> > times without reloading my proxy, I start to get 502 errors from some  
>> > Jersey endpoints.
>> >
>> > So before losing hours without end with this, does anyone have any  
>> > idea? Does, at least, any of this make any sense??
>> Can you send me you Grizzly Comet code (privately)? I would like to see
>> what you are doing in that code. Do you know if all requests reach your
>> CometHandler?
>>
>> BTW I will reply to your private email soon.
>>
>> Thanks
>>
>> -- Jeanfrancois
>>
>>
>>
>> >
>> > Thanks in advance, anyway :)
>> >
>> > Ángel Eduardo García Hernández
>> > [hidden email]
>> > <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880324&i=0 
>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880324&i=0>>
>> >
>> >
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> > View this message in context: Proxy issues
>> > <http://n2.nabble.com/Proxy-issues-tp3880324p3880324.html>
>> > Sent from the Atmosphere users mailling list mailing list archive
>> > <http://n2.nabble.com/Atmosphere-users-mailling-list-f2493822.html> at
>> > Nabble.com.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3892409&i=0>
>> For additional commands, e-mail: [hidden email]
>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3892409&i=1>
>>
>
> Ángel Eduardo García Hernández
> [hidden email]
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3892427&i=1>
>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Proxy issues
> <http://n2.nabble.com/Proxy-issues-tp3880324p3892427.html>
> Sent from the Atmosphere users mailling list mailing list archive
> <http://n2.nabble.com/Atmosphere-users-mailling-list-f2493822.html> at
> Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Á. Eduardo García

Re: Proxy issues

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hehehe, yeah, I know. I read some of your posts a few months ago when starting with Comet. I went with Atmosphere because the server independence and Jersey support, but my deadline is so near (next Monday, and when I close my eyes I see comets :P) that I tried with Grizzly directly, and it worked almost great :). Had to do some tricks with Jersey, but right now all is working just fine :)

I'll create a test case for you next week after our reunion with our clients, I swear :)

On 26 Oct 2009, at 15:39, Jeanfrancois Arcand [via Atmosphere users mailling list] wrote:



Á. Eduardo García wrote:
> Thanks a lot for your concern. I'm not having this problem anymore, as I
> said in my reply. The problem was trying to resume a connection with
> resumeCometHandler(), don't know why. Right now I'm using
> removeCometHandler() and after some time the connection is closed.

Oh! Just to make sure you are aware, I wrote the Grizzly Comet Framework
:-) I'm surprised the removeCometHandler works but not
resumeCometHandler. If you can share a test case, I can take a look.

But don't want to gives you more work :-)

A+

-- Jeanfrancois


>
> On 26 Oct 2009, at 15:31, Jeanfrancois Arcand [via Atmosphere users
> mailling list] wrote:
>
>> Salut,
>>
>> Á. Eduardo García wrote:
>>
>> > Hi to all!
>> >
>> > I know this is a list about Atmosphere, but maybe some of the gurus  
>> > here could help me with an issue I'm having with my comet server
>> (that  
>> > I'm sure I'll have when I can change Grizzly to Atmosphere)
>> >
>> > I have Glassfish (v3 b68) serving a Comet application using Jersey
>> and  
>> > Grizzly for the comet part. I have this configuration behind a
>> reverse  
>> > proxy (Squid) that helps me with cross side scripting issues among  
>> > other things (like caching). The issue I'm getting is that I can only  
>> > refresh my page a few times (3) before I start losing connections.  
>> > After that, I lose one of each two request made to the Glassfish  
>> > server. When stopping my proxy, in the log I can see some errors and  
>> > closing of the lost connections (sometimes 504 from Glassfish and  
>> > sometimes no error code at all). Also, refreshing the page enough  
>> > times without reloading my proxy, I start to get 502 errors from some  
>> > Jersey endpoints.
>> >
>> > So before losing hours without end with this, does anyone have any  
>> > idea? Does, at least, any of this make any sense??
>> Can you send me you Grizzly Comet code (privately)? I would like to see
>> what you are doing in that code. Do you know if all requests reach your
>> CometHandler?
>>
>> BTW I will reply to your private email soon.
>>
>> Thanks
>>
>> -- Jeanfrancois
>>
>>
>>
>> >
>> > Thanks in advance, anyway :)
>> >
>> > Ángel Eduardo García Hernández
>> > [hidden email]
>> > <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880324&i=0 
>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3880324&i=0>>
>> >
>> >
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> > View this message in context: Proxy issues
>> > <http://n2.nabble.com/Proxy-issues-tp3880324p3880324.html>
>> > Sent from the Atmosphere users mailling list mailing list archive
>> > <http://n2.nabble.com/Atmosphere-users-mailling-list-f2493822.html> at
>> > Nabble.com.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3892409&i=0>
>> For additional commands, e-mail: [hidden email]
>> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3892409&i=1>
>>
>
> Ángel Eduardo García Hernández
> [hidden email]
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3892427&i=1>
>
>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Proxy issues
> <http://n2.nabble.com/Proxy-issues-tp3880324p3892427.html>
> Sent from the Atmosphere users mailling list mailing list archive
> <http://n2.nabble.com/Atmosphere-users-mailling-list-f2493822.html> at
> Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Ángel Eduardo García Hernández