Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-08-08 Thread Sze Howe Koh
On Sat, 28 Jul 2018 at 06:28, Giuseppe D'Angelo via Interest < interest@qt-project.org> wrote: > Extract the RPM, and there it is, in all of its glory, a KeepAlive Off > by default in Apache's master configuration file: > > > $ grep -nr KeepAlive . > > ./etc/httpd/conf/httpd.conf:73:# KeepAlive: Wh

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-27 Thread Giuseppe D'Angelo via Interest
Hi, On 26/07/18 17:01, Sze Howe Koh wrote: To clarify: Did the server respond to your GET with "Connection: keep-alive" instead of "Connection: close", when you downloaded a metadata file (*meta.7z)? I sent requests from 3 different programs with different user-agents (plus 1 request from a VM)

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-26 Thread Sze Howe Koh
On Thu, 26 Jul 2018 at 09:24, Thiago Macieira wrote: > > On Wednesday, 25 July 2018 17:59:07 PDT Sze Howe Koh wrote: > > I think the comms was HTTP 1.1, because Wireshark showed "HTTP/1.1 200 > > OK(text/plain)" > > Ok, so the server chose to close the connection. > > It did not happen for me

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-25 Thread Thiago Macieira
On Wednesday, 25 July 2018 17:59:07 PDT Sze Howe Koh wrote: > I think the comms was HTTP 1.1, because Wireshark showed "HTTP/1.1 200 > OK(text/plain)" Ok, so the server chose to close the connection. It did not happen for me when using curl, also with download.qt.io. Possible reasons: 1) di

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-25 Thread Sze Howe Koh
On Thu, 26 Jul 2018 at 08:57, Sze Howe Koh wrote: > > On Thu, 26 Jul 2018 at 05:44, Thiago Macieira > wrote: > > > > On Wednesday, 25 July 2018 10:22:19 PDT Thiago Macieira wrote: > > > On Wednesday, 25 July 2018 07:52:13 PDT Marian Beermann wrote: > > > > Correct. If you augment your debugging

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-25 Thread Sze Howe Koh
On Thu, 26 Jul 2018 at 05:44, Thiago Macieira wrote: > > On Wednesday, 25 July 2018 10:22:19 PDT Thiago Macieira wrote: > > On Wednesday, 25 July 2018 07:52:13 PDT Marian Beermann wrote: > > > Correct. If you augment your debugging a little, it is easy to see the > > > server sending a "Connection

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-25 Thread Thiago Macieira
On Wednesday, 25 July 2018 10:22:19 PDT Thiago Macieira wrote: > On Wednesday, 25 July 2018 07:52:13 PDT Marian Beermann wrote: > > Correct. If you augment your debugging a little, it is easy to see the > > server sending a "Connection: close" header: > > > > qDebug() << ... << reply->rawHeader("C

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-25 Thread Thiago Macieira
On Wednesday, 25 July 2018 07:52:13 PDT Marian Beermann wrote: > Correct. If you augment your debugging a little, it is easy to see the > server sending a "Connection: close" header: > > qDebug() << ... << reply->rawHeader("Connection"); The question is whether the request had a "Connection: keep

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-25 Thread Marian Beermann
Correct. If you augment your debugging a little, it is easy to see the server sending a "Connection: close" header: qDebug() << ... << reply->rawHeader("Connection"); On 25.07.2018 16:38, Sze Howe Koh wrote: > Hi all, > > Revisiting this topic after a hiatus. Thanks for confirming, Thiago and >

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-07-25 Thread Sze Howe Koh
Hi all, Revisiting this topic after a hiatus. Thanks for confirming, Thiago and Hamish. On 13 April 2018 at 10:08, Thiago Macieira wrote: > On quinta-feira, 12 de abril de 2018 15:44:54 PDT Sze Howe Koh wrote: >> Can QNAM re-use a TCP connection for multiple HTTP requests? > > Yes. It's the defa

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-04-12 Thread Thiago Macieira
On quinta-feira, 12 de abril de 2018 15:44:54 PDT Sze Howe Koh wrote: > Can QNAM re-use a TCP connection for multiple HTTP requests? Yes. It's the default. You don't have to do anything to enable it. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Tec

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-04-12 Thread Hamish Moffatt
On 13/04/18 10:22, Jason H wrote: I thought so, but that makes me wonder even more given the recent discussion: why does the maintenance tool not use them? You have to keep a single QNetworkAccessManager and make each new request from that. I haven't checked the code though. I did check tha

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-04-12 Thread Jason H
nterest] Does QNetworkAccessManager support HTTP persistent > connections? (keep-alive) > > On 13/04/18 10:03, Jason H wrote: > > Http/s 1.1 with keep-alive should work too. > > Make sure you're setting the right headers. >

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-04-12 Thread Hamish Moffatt
On 13/04/18 10:03, Jason H wrote: Http/s 1.1 with keep-alive should work too. Make sure you're setting the right headers. QNAM will do that for you automatically. Hamish ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-04-12 Thread Jason H
Http/s 1.1 with keep-alive should work too. Make sure you're setting the right headers. > Sent: Thursday, April 12, 2018 at 7:24 PM > From: "Hamish Moffatt" > To: interest@qt-project.org > Subject: Re: [Interest] Does QNetworkAccessManager support HTTP persistent

Re: [Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-04-12 Thread Hamish Moffatt
On 13/04/18 08:44, Sze Howe Koh wrote: Can QNAM re-use a TCP connection for multiple HTTP requests? AFAICT, it always does, if you reuse the QNAM. Even better if you can use HTTP/2 (needs Qt 5.10.1 or later to actually work), where multiple logical connections can be made over the same TCP c

[Interest] Does QNetworkAccessManager support HTTP persistent connections? (keep-alive)

2018-04-12 Thread Sze Howe Koh
Can QNAM re-use a TCP connection for multiple HTTP requests? This feature would be very helpful for https://bugreports.qt.io/browse/QTIFW-1130 Regards, Sze-Howe ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listi