mirror of
https://github.com/curl/curl.git
synced 2025-09-18 18:12:49 +03:00
parent
720b4a1a43
commit
fa34353d07
|
@ -2938,6 +2938,7 @@ static CURLcode ssh_block_statemach(struct Curl_easy *data,
|
||||||
{
|
{
|
||||||
struct ssh_conn *sshc = &conn->proto.sshc;
|
struct ssh_conn *sshc = &conn->proto.sshc;
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
|
struct curltime dis = Curl_now();
|
||||||
|
|
||||||
while((sshc->state != SSH_STOP) && !result) {
|
while((sshc->state != SSH_STOP) && !result) {
|
||||||
bool block;
|
bool block;
|
||||||
|
@ -2962,6 +2963,12 @@ static CURLcode ssh_block_statemach(struct Curl_easy *data,
|
||||||
return CURLE_OPERATION_TIMEDOUT;
|
return CURLE_OPERATION_TIMEDOUT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(Curl_timediff(now, dis) > 1000) {
|
||||||
|
/* disconnect timeout */
|
||||||
|
failf(data, "Disconnect timed out");
|
||||||
|
result = CURLE_OK;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if(block) {
|
if(block) {
|
||||||
int dir = libssh2_session_block_directions(sshc->ssh_session);
|
int dir = libssh2_session_block_directions(sshc->ssh_session);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user