Groups
Groups
Sign in
Groups
Groups
nodejs
Conversations
About
Send feedback
Help
socket closes after two minutes of idle
37 views
Skip to first unread message
Bodo Kaiser
unread,
Mar 4, 2013, 11:17:10 AM
3/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
Hello,
I am working on another WebSocket implementation and currently I experience that a socket closes after two minutes.
Is there something I could set to avoid this behavior or do I have to use some sort of "heartbeat" frames?
Source:
https://github.com/bodokaiser/node-websockets
Regards,
Bodo Kaiser
Ben Noordhuis
unread,
Mar 4, 2013, 11:22:58 AM
3/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
req.setTimeout(0)
Bodo Kaiser
unread,
Mar 4, 2013, 12:07:27 PM
3/4/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
http://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback
Worked for me! thanks great.
> --
> --
> Job Board:
http://jobs.nodejs.org/
> Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to
nod...@googlegroups.com
> To unsubscribe from this group, send email to
>
nodejs+un...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/nodejs/YBy3k-2UIZc/unsubscribe?hl=en
.
> To unsubscribe from this group and all its topics, send an email to
nodejs+un...@googlegroups.com
.
> For more options, visit
https://groups.google.com/groups/opt_out
.
>
>
Reply all
Reply to author
Forward
0 new messages