[Development] HTTP persistent connection race condition
Thiago Macieira
thiago.macieira at intel.com
Fri Jul 19 23:10:02 CEST 2013
On sexta-feira, 19 de julho de 2013 13.35.09, Justin Karneges wrote:
> Hi,
>
> QNetworkAccessManager supports persistent connections, and I am
> observing a behavior today where some requests by my application are
> failing if enough time passes between requests. I cannot say if this a
> bug in Qt yet (it could very well be in my server-side code), but I am
> wondering if Qt addresses the possibility of sending to a dead
> persistent connection, or the possibility of a persistent connection
> being closed by the server the moment a request is sent out?
It's possible that the connection is torn down without QTcpSocket noticing
(that is, stateful L3 router). It's also possible that the connection is torn
down by the server at the same time that we try to use it again.
QNAM should detect that and it should retry automatically.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130719/adff8db4/attachment.sig>
More information about the Development
mailing list