mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 10:05:03 +00:00
fetch: remove timeout code
This commit is contained in:
parent
8861d32f01
commit
3e3228b6d6
13
src/fetch.c
13
src/fetch.c
@ -93,19 +93,6 @@ static int recv_pkt(git_pkt **out, gitno_buffer *buf)
|
||||
if (error < 0 && error != GIT_EBUFS)
|
||||
return -1;
|
||||
|
||||
/* Wait for max. 1 second */
|
||||
if ((error = gitno_select_in(buf, 1, 0)) < 0) {
|
||||
return -1;
|
||||
} else if (error == 0) {
|
||||
/*
|
||||
* Some servers don't respond immediately, so if this
|
||||
* happens, we keep sending information until it
|
||||
* answers. Pretend we received a NAK to convince higher
|
||||
* layers to do so.
|
||||
*/
|
||||
return GIT_PKT_NAK;
|
||||
}
|
||||
|
||||
if ((ret = gitno_recv(buf)) < 0)
|
||||
return -1;
|
||||
} while (error);
|
||||
|
Loading…
Reference in New Issue
Block a user