[Qt-interest] set connection timeout on QTcpSocket/AbstractSocket

Stephen Collyer scollyer at netspinner.co.uk
Thu Jul 30 16:04:02 CEST 2009


2009/7/30 Donal O'Connor <donaloconnor at gmail.com>

> Hi,
>
> Sounded like a good idea but...
>
> I set it a single shot of 1000ms before I attempted to call connect.
> Whole program locks up then for 30 seconds and I get to timeout slot called
> then after 30 seconds rather than 1.
>
> Everything is fine once I can contact the server, but when it not
> contactable, this is what happens.
>
>
This sounds pretty odd. Is it some kind of nameservice look-up being
done synchronously in the current thread ?

-- 
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/c31806b3/attachment.html 


More information about the Qt-interest-old mailing list