TCP Socket keepalive

Haitao Zhang <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFUyvhoQxUCdpAWnkW0L5PL2xG0O32dkzSKK1+e1egY+5Dik_A@mail.gmail.com>
I have a problem with the TCP socket, where SWI Prolog is client,
disappearing after some time (presumably some inactivity timer expired). I
have set my server side to keepalive, but that does not seem to help.

The message I get from trying to use the socket again after a long idle
time:
ERROR: format/3: I/O error in write on stream <stream>(000000000834B260)
(Socket operation on non-socket)

Any idea on how keep the socket alive?

Thanks,
Haitao
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.