cvsimport: introduce _fetchfile() method and used a 1M buffer to read()
authorMartin Langhoff <martin@catalyst.net.nz>
Tue, 23 May 2006 08:08:58 +0000 (20:08 +1200)
committerJunio C Hamano <junkio@cox.net>
Tue, 23 May 2006 08:16:08 +0000 (01:16 -0700)
commit55cad8429954c7d08d0ce86155e7f9adf2f4c6ad
tree376c7847b1c2e84e0e13cd7dc1d3831b7693d75f
parente73aefe4fdba0d161d9878642c69b40d83a0204c
cvsimport: introduce _fetchfile() method and used a 1M buffer to read()

File retrieval from the socket is now moved to _fetchfile() and we now
cap reads at 1MB. This should limit the memory growth of the cvsimport
process.

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsimport.perl