// I am assuming you don't have a connection capable of more than 4GB/second? If so, why are you reading this? Aren't you supposed to be backing up the Internet?!
staticunsignedlongbandwidthUsedInLastSecond=0;
// A date one second in the future from the time it was created
ASIRequestCancelledError=[[NSErrorerrorWithDomain:NetworkRequestErrorDomaincode:ASIRequestCancelledErrorTypeuserInfo:[NSDictionarydictionaryWithObjectsAndKeys:@"The request was cancelled",NSLocalizedDescriptionKey,nil]]retain];
// Other requests may have to wait for this lock if we're sleeping, but this is fine, since we already know they shouldn't be sending or receiving data