[Qt-interest] Broken buffer in QSslSocket?

Bastian Bense bastibense at gmail.com
Tue Mar 31 09:34:05 CEST 2009


Thiago, thanks a lot of your support yesterday.

By the way, I also found out that even after the QSslSocket has been
disconnected from the remote side, and all input buffer has been read,
QSslSocket::read() will keep returning 0 (instead of the expected -1).
However, QSslSocket::state() returns QAbstractSocket::UnconnectedState
- so I guess an internal check is missing.

I reported this on the bug tracker, too.

2009/3/30 Thiago Macieira <thiago.macieira at trolltech.com>:
> We discussed on IRC and yes this is a bug.
>
> The workaround we found is to call flush() after readAll().

-- 
Best regards,
Bastian Bense



More information about the Qt-interest-old mailing list