Read up to 10000 headers.