Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jun 12, 2011 4:06 am 
Offline
Newbie

Joined: Sat Feb 26, 2011 8:53 pm
Posts: 4
NodeJS is a new asynchronous server-side javascript engine that can act as a webserver. socket.io is a module for nodejs that serves as an abstraction library on the server, and also serves clients, providing a virtual socket between the server and the client (which might be an actual websocket in HTML 5, or something else depending on the browser).

Anyway there are reports of connection cycling when trying to deploy this set of software on Linode. See https://github.com/LearnBoost/Socket.IO-node/issues/224

I've notice this disconnect/reconnect cycling doesn't happen when the server and clients are deployed on an isolated home network -- but I am seeing that cycling when hosted on Linode. So it is either network or Linode related.

I recall a similar issue with ssh sessions to Linodes hanging/disconnecting, see
archive/o_t/t_4793/keeping_an_ssh_session_to_my_linode_open.html

Is there any reason to think these issues are related, and have a common solution? If so, what might that solution be?


Top
   
 Post subject:
PostPosted: Sun Jun 12, 2011 9:36 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
A packet capture using tcpdump on both ends might reveal something. Also, if you have a NAT on your local end, trying to test without that might be helpful.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Mon Jun 13, 2011 2:26 am 
Offline
Senior Member

Joined: Wed Jul 21, 2010 8:04 pm
Posts: 119
Oh I sincerely hope it's not a Linode issue! I'm just about to build a Node.js+Socket.io powered app!


Top
   
 Post subject:
PostPosted: Mon Jun 13, 2011 2:21 pm 
Offline

Joined: Mon Jun 13, 2011 2:15 pm
Posts: 1
+1.
i was debating whether to go linode or ec2. problematic websocket support is a no go :arrow:


Top
   
 Post subject:
PostPosted: Mon Jun 13, 2011 2:34 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
I seriously, seriously doubt this has anything to do with Linode.

-Chris


Top
   
PostPosted: Mon Jun 13, 2011 3:35 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
DrPaulBrewer wrote:
I recall a similar issue with ssh sessions to Linodes hanging/disconnecting, see
archive/o_t/t_4793/keeping_an_ssh_session_to_my_linode_open.html

Is there any reason to think these issues are related, and have a common solution? If so, what might that solution be?


Unless I'm mistaken, that one was caused by the user having incorrectly configured their SSH software...


Top
   
PostPosted: Tue Jun 21, 2011 10:53 am 
Offline
Newbie

Joined: Sat Feb 26, 2011 8:53 pm
Posts: 4
A quick "thank you" to everyone who replied.

I have come to the following quick conclusions:

1. socket.io may be a bit early in the technology cycle.... There are all sorts of problems deploying anything important on socket.io; others, e.g. on stackoverflow, have had various problems with corporate firewalls and other issues.

2. Problems I've seen can be duplicated at other sites I have access to... so the connection cycling is not a LINODE or a VPS issue.

3. JSON RPC polling is good enough for me... don't really need to support websocket for what I'm working on... nodejs is still useful in this environment, and I really like nodejs programming model that can simplify coding -- and not worrying about database locking and multiple moving parts, etc...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group