[Qt-interest] QTcpSocket suddenly disconnects
Thiago Macieira
thiago.macieira at trolltech.com
Thu Aug 6 21:07:02 CEST 2009
Joshua Senecal wrote:
>> >if (!socketEngine->isValid()) {
>> > socketError = socketEngine->error();
>> > q->setErrorString(socketEngine->errorString());
>> > emit q->error(socketError);
>> >#if defined(QABSTRACTSOCKET_DEBUG)
>> > qDebug("QAbstractSocketPrivate::readFromSocket() read failed:
>> > %s", q->errorString().toLatin1().constData());
>> >#endif
>> > resetSocketLayer();
>> > return false;
>> >}
>
>Why is the error emitted before the socket layer is reset?
I can't see why. The logs in the file don't give any specific reason, so I
guess it's like that just because that's how it was written, for no
special reason.
I can try inverting and seeing what autotests break, if any.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090806/f18799f3/attachment.bin
More information about the Qt-interest-old
mailing list