Broken KIO connections

Alex Merry huntedhacker at tiscali.co.uk
Wed Apr 18 18:39:13 BST 2007


On Wednesday 18 Apr 2007, Alex Merry wrote:
> Creating socket:
>     protocol: http
>           host: www.google.com
>           port: 80
> Socket state: 0 [UnconnectedState]
> Socket error: 2 [HostNotFoundError]
> Socket errorString: Host not found

Further to my previous email about QSslSocket being the problem, the 
attached patch is the change I want to make (I've included some 
debugging as well, so we can see what the error message was before 
setError gets to change it).

It seems to be a bug in QSslSocket: both immediately after creation and 
after waitForConnection, the socket is in PlainMode 
(http://doc.trolltech.com/4.3/qsslsocket.html#Mode-enum), which should 
make it act exactly like QTcpSocket.

More probing later.

Alex



-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksocketfactory-hack.diff
Type: text/x-diff
Size: 1514 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070418/e9db03d7/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070418/e9db03d7/attachment.sig>


More information about the kde-core-devel mailing list