[Qt-interest] QFtp will not timeout
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Sat Nov 14 02:35:35 CET 2009
This also exists in QHttp, and the QNetworkAccessManager...
My solution is to do the following:
QTimer::singleShot( XXXX, ftp, SLOT( abort() ) ) )
Call that after you call the "command" on ftp or the post on http type
commands.
Scott
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Alan
Sent: Friday, November 13, 2009 5:23 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QFtp will not timeout
My program sends and receives files using QFtp.
If I try to connect to an ftp site using an IP address while my computer
is not connected
to the internet, the connect hangs.
I also tried the QFtp demo program and observed the same behavior.
If I use the windows ftp program in a command window I receive an error
right away.
I also tried QTcpSocket since QFtp uses QAbstractSocket and I received a
no 'route to host' error right away as expected.
So it looks like it is QFtp that just does not timeout as it should.
Any one else seen this issue?
Platform: Windows XP sp3
Thanks,
Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091113/a0256657/attachment.html
More information about the Qt-interest-old
mailing list