[Qt-interest] QNetworkAccessManager Keep-Alive

Антон Сердюков uksus70 at gmail.com
Mon Jun 1 04:06:03 CEST 2009


Here you are.

I've been monitoring network connections via "netstat -n -p tcp". When reply
object is "deleted" within finished() signal, the connection is closed and I
can see following lines in netstat:

  TCP    my.ip.goes.here:1690       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1691       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1692       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1693       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1694       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1695       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1696       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1697       87.238.50.178:80       TIME_WAIT
  TCP    my.ip.goes.here:1698       87.238.50.178:80       TIME_WAIT

When the deletion is commented, I've got the only one connection here:

  TCP    my.ip.goes.here:1711       87.238.50.178:80       ESTABLISHED

My operating system is Windows XP, Qt 4.5.1

Regards,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090601/ca227696/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HttpSample.zip
Type: application/zip
Size: 1331 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090601/ca227696/attachment.zip 


More information about the Qt-interest-old mailing list