[Qt-interest] previous connections clean up

Thiago Macieira thiago.macieira at trolltech.com
Thu Jun 11 14:19:19 CEST 2009


Rahulkumar Tibdewal wrote:
>Hello there!!
>
>Hi, well I want to close http connections established while browsing.
>This is a kind of requirement, for my software.
>Here I need to clean or previously established HTTP connection (i.e. no
> more keep alives messge should be send computer ).
>
>I used QHttp:abort(); However no real success!! :-(

QHttp should no longer be used: using QNetworkAccessManager is recommended 
instead. And QNetworkAccessManager *will* keep connections alive for up to 
2 minutes: you can't change that behaviour.

If you really must close the connection, you'll have to write your own 
HTTP stack. But, really, why do you have such a requirement?

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090611/b962514f/attachment.bin 


More information about the Qt-interest-old mailing list