forked from qt-creator/qt-creator
SSH: Check for more timeouts.
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
|
||||
#include <botan/exceptn.h>
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
|
||||
namespace Core {
|
||||
|
||||
const QByteArray SshRemoteProcess::AbrtSignal("ABRT");
|
||||
@@ -158,6 +160,7 @@ void SshRemoteProcessPrivate::handleOpenSuccessInternal()
|
||||
|
||||
m_sendFacility.sendExecPacket(remoteChannel(), m_command);
|
||||
setProcState(ExecRequested);
|
||||
m_timeoutTimer->start(ReplyTimeout);
|
||||
}
|
||||
|
||||
void SshRemoteProcessPrivate::handleOpenFailureInternal()
|
||||
@@ -171,6 +174,7 @@ void SshRemoteProcessPrivate::handleChannelSuccess()
|
||||
throw SSH_SERVER_EXCEPTION(SSH_DISCONNECT_PROTOCOL_ERROR,
|
||||
"Unexpected SSH_MSG_CHANNEL_SUCCESS message.");
|
||||
}
|
||||
m_timeoutTimer->stop();
|
||||
setProcState(Running);
|
||||
}
|
||||
|
||||
@@ -180,7 +184,7 @@ void SshRemoteProcessPrivate::handleChannelFailure()
|
||||
throw SSH_SERVER_EXCEPTION(SSH_DISCONNECT_PROTOCOL_ERROR,
|
||||
"Unexpected SSH_MSG_CHANNEL_FAILURE message.");
|
||||
}
|
||||
|
||||
m_timeoutTimer->stop();
|
||||
setProcState(StartFailed);
|
||||
closeChannel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user