Catch both IOError and OSError, fix regression introduced by
8046f0a070a6
protocol: use changegroupsubset() if possible (
issue1389)
Due to the fix to the pull race, to avoid sending unnecessary
changesets, use changegroupsubset if possible.
This will increase the load on the server.