Code

http.c: Rely on select instead of tracking whether data was received
authorMika Fischer <mika.fischer@zoopnet.de>
Fri, 4 Nov 2011 14:19:27 +0000 (15:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 Nov 2011 17:47:13 +0000 (10:47 -0700)
commitdf26c471278f13ca6ad96b12a533ef4172323c13
tree449705a9e769a8d16f5a6b36c38ecd2cf327f8e2
parenteb56c82163487fe07ba04f2b365a557282cbd766
http.c: Rely on select instead of tracking whether data was received

Since now select is used with the file descriptors of the http connections,
tracking whether data was received recently (and trying to read more in
that case) is no longer necessary. Instead, always call select and rely on
it to return as soon as new data can be read.

Signed-off-by: Mika Fischer <mika.fischer@zoopnet.de>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
http.h