socket closes after two minutes of idle

37 views
Skip to first unread message

Bodo Kaiser

unread,
Mar 4, 2013, 11:17:10 AM3/4/13
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?


Regards,
Bodo Kaiser

Ben Noordhuis

unread,
Mar 4, 2013, 11:22:58 AM3/4/13
to nod...@googlegroups.com
req.setTimeout(0)

Bodo Kaiser

unread,
Mar 4, 2013, 12:07:27 PM3/4/13
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