This is a multi-part message in MIME format. --===============0692240891678970373== Content-Type: multipart/alternative; boundary="nextPart2212841.rPvs4kL1Qv" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart2212841.rPvs4kL1Qv Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" I did help, and a lot! While you didn=E2=80=99t explain why the newConn= ection() signal is emitted twice, you gave me a way to avoid counting t= he same request more than once, which is far better. I can now continue= working on the tests. I=E2=80=99ve posted the issue in the Qt Forums[1], to see if someone th= ere has more input on why QTcpServer behaves the way it behaves. Again, many thanks. Adrian O Xoves, 7 de Marzo de 2013 15:31:31 Albert Astals Cid escribiu: > El Dimarts, 5 de mar=C3=A7 de 2013, a les 21:25:13, Adri=C3=A1n Chave= s Fern=C3=A1ndez va=20 > escriure: > There's no race condition at all between KJob and QNetworkAccessManag= er, i'd=20 > say it's just that your code is assuming wrong stuff regarding how th= e network=20 > communication happens. >=20 > Proof that there is no KJob/QNetworkAccessManager race condition is a= ttached=20 > in proof1.tar.bz2. As you can see in it, there is no KJob anywhere bu= t you=20 > still get "Already got this request!!!!!!!!!!!" debugs >=20 > Proof that there is something wrong in your assumptions on how the ne= twork=20 > communication happens is attached in proof2.tar.bz2. As you see there= I'm not=20 > sending any data in the post method and all is fine. (You can do the = same in=20 > your code by sending nothing in your post() method inside job.cpp) >=20 > Hope this helps. >=20 > Cheers, > Albert -------- [1] http://qt-project.org/forums/viewthread/25521/ --nextPart2212841.rPvs4kL1Qv Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

I d= id help, and a lot! While you didn=E2=80=99t explain why the newConnect= ion() signal is emitted twice, you gave me a way to avoid counting the = same request more than once, which is far better. I can now continue wo= rking on the tests.

 

I=E2= =80=99ve posted the iss= ue in the Qt Forums, to see if someone there has more input = on why QTcpServer behaves the way it behaves.

 

Aga= in, many thanks.

Adr= ian

 

O X= oves, 7 de Marzo de 2013 15:31:31 Albert Astals Cid escribiu:

>= ; El Dimarts, 5 de mar=C3=A7 de 2013, a les 21:25:13, Adri=C3=A1n Chave= s Fern=C3=A1ndez va

>= ; escriure:

>= ; There's no race condition at all between KJob and QNetworkAccessManag= er, i'd

>= ; say it's just that your code is assuming wrong stuff regarding how th= e network

>= ; communication happens.

>= ;

>= ; Proof that there is no KJob/QNetworkAccessManager race condition is a= ttached

>= ; in proof1.tar.bz2. As you can see in it, there is no KJob anywhere bu= t you

>= ; still get "Already got this request!!!!!!!!!!!" debugs

>= ;

>= ; Proof that there is something wrong in your assumptions on how the ne= twork

>= ; communication happens is attached in proof2.tar.bz2. As you see there= I'm not

>= ; sending any data in the post method and all is fine. (You can do the = same in

>= ; your code by sending nothing in your post() method inside job.cpp)

>= ;

>= ; Hope this helps.

>= ;

>= ; Cheers,

>= ; Albert

--nextPart2212841.rPvs4kL1Qv-- --===============0692240891678970373== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0692240891678970373==--