Adaptive solution of infinite linear systems by Krylov subspace methods