How do you force node.js to send an ACK packet with no data in it in
order to keep a TCP connection alive? I need to use a TCP keepalive
connection, which is traditionally done by sending an empty ACK to the
peer and forcing it to respond with a similar ACK.
connection.write("", "binary") doesn't send anything at all when an
empty string is passed to it.
Cheers--
Julian
Do you mean SO_KEEPALIVE? I don't have a binding for that yet.
Yeah. Follow the example of setNoDelay, it should be straight forward.
Here's the public repo for you:
git://github.com/thepurlieu/node.git
Let me know if you have any questions or requests you want me to
implement.
Cheers,
Julian
On Mar 14, 11:38 pm, Ryan Dahl <coldredle...@gmail.com> wrote:
Cheers--
Julian