only update chunk size when there is complete chunk size line and you completed last chunk