[Qt-interest] QTcpServer timeout ?

André Fillipe andref at syst.com.br
Wed Jul 21 18:56:43 CEST 2010


On 21 July 2010 11:39, Thiago Macieira <thiago at kde.org> wrote:
> I don't think it is the proper tool for the job.
>
> TCP Keep-Alive has a timeout of several hours. It's way more than the usual
> inactivity timer in NAT firewalls.

I thought one could change these settings on a per-socket basis with
setsockopt, no?

Another problem I see, however, is that one of the peers may hang (for
instance, after receiving SIG_STOP) and the kernel will still send the
KeepAlive packets in its behalf (which may or may not be what you
want, but is definitely out of the programmer's control). Apparently,
the app is the best place to implement the keep-alive mechanism.

-- 
André Fillipe




More information about the Qt-interest-old mailing list