mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08:00
libssh2: set the expected total size in SCP upload init
... as otherwise the progress callback gets called without that information, making the progress meter have less info. Reported-by: Murugan Balraj Bug: https://curl.haxx.se/mail/archive-2020-05/0000.html Closes #5317
This commit is contained in:
parent
5cb7f893df
commit
df2093d293
@ -2551,7 +2551,9 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
||||
}
|
||||
|
||||
/* upload data */
|
||||
Curl_setup_transfer(data, -1, data->req.size, FALSE, FIRSTSOCKET);
|
||||
data->req.size = data->state.infilesize;
|
||||
Curl_pgrsSetUploadSize(data, data->state.infilesize);
|
||||
Curl_setup_transfer(data, -1, -1, FALSE, FIRSTSOCKET);
|
||||
|
||||
/* not set by Curl_setup_transfer to preserve keepon bits */
|
||||
conn->sockfd = conn->writesockfd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user