How to sustain TcpListener keep-alive?
I'm creating a https SSL listener that works on top of the tcplistener, but I'm having a problem with the TCP keep-alive.
The itself server works well, but it seems that every request cannot reuse previous connections.
The code below was trimmed to reduce the size of the example. Btw, I open the streams and discard them at the end of TCPListeners egiBeginAcceptTcpClient callback . I couldn't find another example or documentation about it, so idk if I should reuse networkstreams or just accept another tcpclient.
my question is: how i'm supposed to manage the tcplistener clients/streams in order to mantain keep-alive connections?
The itself server works well, but it seems that every request cannot reuse previous connections.
The code below was trimmed to reduce the size of the example. Btw, I open the streams and discard them at the end of TCPListeners egiBeginAcceptTcpClient callback . I couldn't find another example or documentation about it, so idk if I should reuse networkstreams or just accept another tcpclient.
my question is: how i'm supposed to manage the tcplistener clients/streams in order to mantain keep-alive connections?
