[Qt-interest] Problems with QSslSocket hanging

Thomas Dähling t.daehling at googlemail.com
Tue Jul 27 13:39:12 CEST 2010


Isn't Qt using OpenSsl? I remember that OpenSsl uses Heap32Next()
which used to return in constant time before Win7 but with Win7 it is
depending upon the amount of objects allocated on the heap. This can
even trigger the problem that the SSL connection times out. Not sure
if OpenSSL fixed this yet, though. Tried checking but their website is
down for me at the moment... one way or another, according to Google
this is the link to the issue:
http://rt.openssl.org/Ticket/Display.html?id=2100&user=guest&pass=guest

HTH,
/Thomas

2010/7/27 Scott Aron Bloom <Scott.Bloom at onshorecs.com>:
> I moved my development box from XP to Win7, and Qt is working just fine with
> no problems.. Except SSL based http connections..
>
> Here is what I have done, originally I was using OpenSSL 0.9.8k but have
> also tried 0.9.8m with no difference.
>
> I have completely rebuilt the openssl libraries.
> I have confirmed the two dlls load with no issues at all. I have botha debug
> and release version (not necessary previously, but I figured what the
> heck).  Makes no difference.
>
> QSslSocket::supportsSsl() returns true.  The libraries load into Qt.  And
> the symbols load up.
>
> However, in using QHttp or QNetworkAccessmanager with a https url, it sits
> until the underlying system times out (45 seconds for QHttp, 1 min for QNAM)
>
> Any ideas?   And help will be greatly appreciated, Ive been working on this
> for 30+ hours trying all sorts of crap...
>
> Scott
>
> The sample code is as simple as it gets...
>
>
> QNetworkRequest request( QUrl( "https://....." ) );
>
> QNetworkAccessManager man;
>
> QNetworkReply * rep = man.get( request );
>
>
> Ive tried a bunch of https connections, its not a certificate thing..
> Scott
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list