We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have a problem with the TCP connection being dropped. The far end drops the connection after a few minutes.
I believe I need to send TCP keepalives periodically to stop the connection from dropping, but I don't see a way to do this. I tried sending a zero length buffer to tcp_send() (with the 3rd param set to 0). That didn't seem to do anything.
Then I tried sending one byte of garbage data periodically, and this keeps the connection up.
I don't want to send garbage. How can I send a proper keepalive (an empty packet with the ACK flag set)?
Dave
Thanks. That would work, or perhaps a telnet negotiation sequence like IAC NOP. There are ways around it.