[Development] HTTP persistent connection race condition

Markus Goetz markus at woboq.com
Mon Jul 22 14:23:51 CEST 2013

On 19.07.13 23:10, Thiago Macieira wrote:
> 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.
Is your request a POST/PUT request?
What error do you get?

More information about the Development mailing list