Google Groups Home
Help | Sign in
server side socket connections
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Freak.2k  
View profile
 More options Aug 14 2006, 5:12 pm
From: "Freak.2k" <Freak...@gmx.net>
Date: Mon, 14 Aug 2006 14:12:43 -0700
Local: Mon, Aug 14 2006 5:12 pm
Subject: server side socket connections
Hello,

the server side of my gwt app creates a socket connection to a remote
server.
when the user closes its browser, the server holds the connection open
for e very long time....stopped test after 1,5 hours...
is there any property to configure a time out?
but how does the gwt server recognize that the client isn't there
anymore?
Or do I have to implement a "I'm still here" notification in the
client, and if a specific amount of time no "I'm still here"
notification arrives at the server side, the connection should be
closed?

greets from germany


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
br...@google.com  
View profile
 More options Aug 14 2006, 8:45 pm
From: br...@google.com
Date: Mon, 14 Aug 2006 17:45:12 -0700
Local: Mon, Aug 14 2006 8:45 pm
Subject: Re: server side socket connections
GWT doesn't try to associate particular clients with particular
servers. Each RPC call is assumed to be statelss from both the client's
and the server's perspective. This is a little harder to design, but it
is basically a preqrequisite to creating apps that are both scalable
and fault tolerant.

For your specific situation, it seems like the sever-side socket
connection ought to have a timeout, probably implemented using a
separate thread within your serlvet. The socket timeout then could
reset itself whenever an RPC comes in. Unless you have very unusual
circumstances, I'd recommend against sending empty keep-alives from the
client. Just use the natural RPC calls to act as a keep-alive. Trying
to a create very tight binding between a particular client and a
particular server is not a good match for HTTP.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google