earwig / bitshift

A semantic search engine for source code
https://bitshift.benkurtovic.com/
MIT License
30 stars 5 forks source link

Fix alarm-terminated `git clone` residual `git-remote-http`. #8

Closed sevko closed 10 years ago

sevko commented 10 years ago

bitshift.crawler.indexer._GitClone._clone_repository(), after termination by the perl one-liner alarm, leaves a residual git-remote-http process. After some time, these accumulate (as the number of attempts to clone corrupted repositories increases, which by their nature never succeed and must be terminated by the timeout), and choke the system's RAM.