On 22 April 2014 03:12, Scott Aron Bloom scott.bl...@onshorecs.com wrote:
Agreed.. but it would be even easier... if abort was a slot :)
It is a slot in Qt 5. Besides, you can always connect to a custom slot
which invokes abort()...
--
Giuseppe D'Angelo
I have code, that sends a http request via QNetworkAccessManager.
Unfortunately, there are times, where the network on the machine will be up,
but the connection to the internet is down.. Or the internet is up, but the
backend server is down. Meaning, there is no way for my application to
Em seg 21 abr 2014, às 17:28:16, Scott Aron Bloom escreveu:
I have code, that sends a http request via QNetworkAccessManager.
Unfortunately, there are times, where the network on the machine will be
up, but the connection to the internet is down.. Or the internet is up, but
the backend
-Original Message-
From: interest-bounces+scott.bloom=onshorecs@qt-project.org
[mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of
Thiago Macieira
Sent: Monday, April 21, 2014 10:32 AM
To: interest@qt-project.org
Subject: Re: [Interest] QNAM timeout is way
Aron Bloom scott.bl...@onshorecs.com
To: interest@qt-project.org interest@qt-project.org
Sent: Monday, April 21, 2014 1:28 PM
Subject: [Interest] QNAM timeout is way too long
I have code, that sends a http request via QNetworkAccessManager.
Unfortunately, there are times, where the network
Em seg 21 abr 2014, às 18:55:28, Scott Aron Bloom escreveu:
The only problem, is QNetworkRequests::abort isn't a slot So I have to
create an intermediary slot, figure out which request timedout, and abort
it.
You don't need it to be a slot if you use the new connection syntax or a
lambda.
Em seg 21 abr 2014, às 12:19:21, Jason H escreveu:
It should be 75 seconds on most platforms. You can blame that on ARPAnet.
QAbstractSocket has a 30 second timeout on DNS lookup + connection.
QAbstractSocketPrivate::_q_connectToNextAddress():
] QNAM timeout is way too long
Em seg 21 abr 2014, às 18:55:28, Scott Aron Bloom escreveu:
The only problem, is QNetworkRequests::abort isn't a slot So I have to
create an intermediary slot, figure out which request timedout, and
abort it.
You don't need it to be a slot if you use the new
timeout is way too long
Em seg 21 abr 2014, às 12:19:21, Jason H escreveu:
It should be 75 seconds on most platforms. You can blame that on ARPAnet.
QAbstractSocket has a 30 second timeout on DNS lookup + connection.
QAbstractSocketPrivate::_q_connectToNextAddress():
[http://code.woboq.org/qt5
-
From: interest-bounces+scott.bloom=onshorecs@qt-project.org
[mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of
Jason H
Sent: Monday, April 21, 2014 2:02 PM
To: Thiago Macieira; interest@qt-project.org
Subject: Re: [Interest] QNAM timeout is way too long
Well
Em seg 21 abr 2014, às 14:02:05, Jason H escreveu:
Well if you're going to the effort to create a timeout that isn't the 75s
system timeout, why not make it a variable timeout?
Because this is a combined DNS + connection timeout, as opposed to a timeout
for each that you would get from the OS
Em seg 21 abr 2014, às 21:30:23, Scott Aron Bloom escreveu:
I had filed a bug, against QHttp and QFtp almost 6 or 7 years ago, right as
QNAM came out, of course it was closed because those classes were being
deprecated for QNAM, to add a setTimeout to the request calls...
I would love to
-Original Message-
From: interest-bounces+scott.bloom=onshorecs@qt-project.org
[mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of
Thiago Macieira
Sent: Monday, April 21, 2014 6:11 PM
To: interest@qt-project.org
Subject: Re: [Interest] QNAM timeout is way
Em seg 21 abr 2014, às 18:09:59, Thiago Macieira escreveu:
And besides, it's not 75 seconds. It's 127 seconds, per IP address.
$ strace -r telnet 192.0.2.1 1024 | grep -A1 connect.*192.0.2.1
0.18 connect(3, {sa_family=AF_INET, sin_port=htons(1024),
sin_addr=inet_addr(192.0.2.1)},
On Mon, Apr 21, 2014 at 10:58 PM, Scott Aron Bloom
scott.bl...@onshorecs.com wrote:
I have code, that sends a http request via QNetworkAccessManager.
Unfortunately, there are times, where the network on the machine will be up,
but the connection to the internet is down.. Or the internet is up,
15 matches
Mail list logo