summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2012-07-25 16:30:58 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-07-30 20:28:16 +0200
commit3e3228b6d65c5b1f76ea08a23be2a457f904ff0a (patch)
tree2b321a18d2e4820d8c9428b49f6b8f7ce4466b19 /src/fetch.c
parent8861d32f01bf29e37396ff5a9ef263399d52e73c (diff)
downloadlibgit2-3e3228b6d65c5b1f76ea08a23be2a457f904ff0a.tar.gz
fetch: remove timeout code
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/fetch.c b/src/fetch.c
index 26fa39601..f8f853fef 100644
--- a/src/fetch.c
+++ b/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);