Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bandwith / bandwidth issue #258

Merged
merged 1 commit into from

2 participants

@leereilly

bandwidth is misspelled in a couple of BOOLs in ASIHTTPRequest.m...

Cheers,
Lee :beer:

@pokeb pokeb merged commit 29a1571 into from
@pokeb
Owner

Nice catch, many thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 13, 2011
  1. @leereilly

    sp bandwith => bandwidth

    leereilly authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +5 −5 Classes/ASIHTTPRequest.m
View
10 Classes/ASIHTTPRequest.m
@@ -105,7 +105,7 @@ static void ReadStreamClientCallBack(CFReadStreamRef readStream, CFStreamEventTy
// When YES, bandwidth will be automatically throttled when using WWAN (3G/Edge/GPRS)
// Wifi will not be throttled
-static BOOL shouldThrottleBandwithForWWANOnly = NO;
+static BOOL shouldThrottleBandwidthForWWANOnly = NO;
#endif
// Mediates access to the session cookies so requests
@@ -4493,7 +4493,7 @@ + (BOOL)isBandwidthThrottled
#if TARGET_OS_IPHONE
[bandwidthThrottlingLock lock];
- BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && (maxBandwidthPerSecond > 0));
+ BOOL throttle = isBandwidthThrottled || (!shouldThrottleBandwidthForWWANOnly && (maxBandwidthPerSecond > 0));
[bandwidthThrottlingLock unlock];
return throttle;
#else
@@ -4573,7 +4573,7 @@ + (void)measureBandwidthUsage
// Are we performing bandwidth throttling?
if (
#if TARGET_OS_IPHONE
- isBandwidthThrottled || (!shouldThrottleBandwithForWWANOnly && (maxBandwidthPerSecond))
+ isBandwidthThrottled || (!shouldThrottleBandwidthForWWANOnly && (maxBandwidthPerSecond))
#else
maxBandwidthPerSecond
#endif
@@ -4625,7 +4625,7 @@ + (void)setShouldThrottleBandwidthForWWAN:(BOOL)throttle
[ASIHTTPRequest setMaxBandwidthPerSecond:0];
[bandwidthThrottlingLock lock];
isBandwidthThrottled = NO;
- shouldThrottleBandwithForWWANOnly = NO;
+ shouldThrottleBandwidthForWWANOnly = NO;
[bandwidthThrottlingLock unlock];
}
}
@@ -4633,7 +4633,7 @@ + (void)setShouldThrottleBandwidthForWWAN:(BOOL)throttle
+ (void)throttleBandwidthForWWANUsingLimit:(unsigned long)limit
{
[bandwidthThrottlingLock lock];
- shouldThrottleBandwithForWWANOnly = YES;
+ shouldThrottleBandwidthForWWANOnly = YES;
maxBandwidthPerSecond = limit;
[ASIHTTPRequest registerForNetworkReachabilityNotifications];
[bandwidthThrottlingLock unlock];
Something went wrong with that request. Please try again.