mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:43:33 +03:00
multi: use a fixed array of timers instead of malloc
... since the total amount is low this is faster, easier and reduces memory overhead. Also, Curl_expire_done() can now mark an expire timeout as done so that it never times out. Closes #1472
This commit is contained in:
parent
e9fd794a61
commit
31b39c40cf
12 changed files with 66 additions and 70 deletions
|
|
@ -1891,7 +1891,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
/* since we don't really wait for anything at this point, we want the
|
||||
state machine to move on as soon as possible so we set a very short
|
||||
timeout here */
|
||||
Curl_expire(data, 0);
|
||||
Curl_expire(data, 0, EXPIRE_RUN_NOW);
|
||||
|
||||
state(conn, SSH_STOP);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue