Showing
1 changed file
with
6 additions
and
2 deletions
| @@ -72,12 +72,16 @@ static unsigned long maxBandwidthPerSecond = 0; | @@ -72,12 +72,16 @@ static unsigned long maxBandwidthPerSecond = 0; | ||
| 72 | // A default figure for throttling bandwidth on mobile devices | 72 | // A default figure for throttling bandwidth on mobile devices |
| 73 | unsigned long const ASIWWANBandwidthThrottleAmount = 14800; | 73 | unsigned long const ASIWWANBandwidthThrottleAmount = 14800; |
| 74 | 74 | ||
| 75 | +#if TARGET_OS_IPHONE | ||
| 75 | // YES when bandwidth throttling is active | 76 | // YES when bandwidth throttling is active |
| 76 | // This flag does not denote whether throttling is turned on - rather whether it is currently in use | 77 | // This flag does not denote whether throttling is turned on - rather whether it is currently in use |
| 77 | // It will be set to NO when throttling was turned on with setShouldThrottleBandwidthForWWAN, but a WI-FI connection is active | 78 | // It will be set to NO when throttling was turned on with setShouldThrottleBandwidthForWWAN, but a WI-FI connection is active |
| 78 | -BOOL isBandwidthThrottled = NO; | 79 | +static BOOL isBandwidthThrottled = NO; |
| 79 | 80 | ||
| 80 | -BOOL shouldThrottleBandwithForWWANOnly = NO; | 81 | +// When YES, bandwidth will be automatically throttled when using WWAN (3G/Edge/GPRS) |
| 82 | +// Wifi will not be throttled | ||
| 83 | +static BOOL shouldThrottleBandwithForWWANOnly = NO; | ||
| 84 | +#endif | ||
| 81 | 85 | ||
| 82 | // Mediates access to the session cookies so requests | 86 | // Mediates access to the session cookies so requests |
| 83 | static NSRecursiveLock *sessionCookiesLock = nil; | 87 | static NSRecursiveLock *sessionCookiesLock = nil; |
-
Please register or login to post a comment