I thought we could expand on the interrupt handling and add a download size limiter. The rationale is simple: sometimes you want to make sure the server on the other end will not overflow your disk (by mistake or by malice).
Note that I had to switch to Ubuntu 14 on Travis because on their Precise stuff libCURL has a bug that won't let it stop on an interrupt. Same for Session#interrupt but there were no tests for that either, so got to add them soon.
I thought we could expand on the interrupt handling and add a download size limiter. The rationale is simple: sometimes you want to make sure the server on the other end will not overflow your disk (by mistake or by malice).
Note that I had to switch to Ubuntu 14 on Travis because on their Precise stuff libCURL has a bug that won't let it stop on an interrupt. Same for
Session#interrupt
but there were no tests for that either, so got to add them soon.