[Qt-interest] QTcpServer timeout ?

Dan White ygor at comcast.net
Wed Jul 21 20:25:51 CEST 2010


Can you get hold of a copy of UNIX Network Programming, Volume 1 by W. Richard Stevens, Stevens ?

Especially if you have control over both ends of the connection, Stevens says that you should set up a heartbeat to cover periods of inactivity.

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Thiago Macieira <thiago at kde.org> wrote:
> On Wednesday 21. July 2010 11.00.34 BRM wrote:
> > The TCP Stack Keep Alive is the proper way to do this.Every modern TCP
> > stack  supports TCP Keep Alive. TCP KeepAlive is  explicitly provided so
> > that you don't have to do it in your application.
> 
> 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.
> 
> You need to do data transfer from the client side to the server.
> 
> -- 
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   Senior Product Manager - Nokia, Qt Development Frameworks
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358





More information about the Qt-interest-old mailing list