Add timeout to SSH Agent streams

* Fixes #11128
This commit is contained in:
Jonathan White 2024-09-22 21:30:38 -04:00
parent c1a66a8be9
commit a82283b7a2
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01
2 changed files with 1 additions and 3 deletions

View File

@ -21,14 +21,12 @@
BinaryStream::BinaryStream(QIODevice* device)
: QObject(device)
, m_timeout(-1)
, m_device(device)
{
}
BinaryStream::BinaryStream(QByteArray* ba, QObject* parent)
: QObject(parent)
, m_timeout(-1)
{
m_buffer.reset(new QBuffer(ba));
m_buffer->open(QIODevice::ReadWrite);

View File

@ -55,7 +55,7 @@ protected:
bool write(const char* ptr, qint64 len);
private:
int m_timeout;
int m_timeout = 5000;
QString m_error;
QIODevice* m_device;
QScopedPointer<QBuffer> m_buffer;