зеркало из https://github.com/microsoft/git.git
Merge branch 'sp/fix-smart-http-deadlock-on-error'
* sp/fix-smart-http-deadlock-on-error: smart-http: Don't deadlock on server failure
This commit is contained in:
Коммит
1c80c9b2cb
|
@ -528,11 +528,12 @@ static int rpc_service(struct rpc_state *rpc, struct discovery *heads)
|
||||||
rpc->len = n;
|
rpc->len = n;
|
||||||
err |= post_rpc(rpc);
|
err |= post_rpc(rpc);
|
||||||
}
|
}
|
||||||
strbuf_read(&rpc->result, client.out, 0);
|
|
||||||
|
|
||||||
close(client.in);
|
close(client.in);
|
||||||
close(client.out);
|
|
||||||
client.in = -1;
|
client.in = -1;
|
||||||
|
strbuf_read(&rpc->result, client.out, 0);
|
||||||
|
|
||||||
|
close(client.out);
|
||||||
client.out = -1;
|
client.out = -1;
|
||||||
|
|
||||||
err |= finish_command(&client);
|
err |= finish_command(&client);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче