[Qt-interest] QTcpServer timeout ?

David Boosalis david.boosalis at gmail.com
Thu Jul 22 02:14:34 CEST 2010


Thanks to all for the informative discussion on KeepAlive.  I did try it and
as most of you already surmised it did not work.  I went a head and
implemented a ping every 90 seconds, and that works.

-david


On Wed, Jul 21, 2010 at 11:25 AM, Dan White <ygor at comcast.net> wrote:

> 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
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100721/2ba9f1be/attachment.html 


More information about the Qt-interest-old mailing list