Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2009-10-06 10:22:26 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8017db2ad6eb7d7131df13d4a34e56f716cb14dc
8017db2a
1 parent
1ac7f8a6
Wrap iPhone-specific statics in compilation directive
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
8017db2
...
...
@@ -72,12 +72,16 @@ static unsigned long maxBandwidthPerSecond = 0;
// A default figure for throttling bandwidth on mobile devices
unsigned
long
const
ASIWWANBandwidthThrottleAmount
=
14800
;
#if TARGET_OS_IPHONE
// YES when bandwidth throttling is active
// This flag does not denote whether throttling is turned on - rather whether it is currently in use
// It will be set to NO when throttling was turned on with setShouldThrottleBandwidthForWWAN, but a WI-FI connection is active
BOOL
isBandwidthThrottled
=
NO
;
static
BOOL
isBandwidthThrottled
=
NO
;
BOOL
shouldThrottleBandwithForWWANOnly
=
NO
;
// When YES, bandwidth will be automatically throttled when using WWAN (3G/Edge/GPRS)
// Wifi will not be throttled
static
BOOL
shouldThrottleBandwithForWWANOnly
=
NO
;
#endif
// Mediates access to the session cookies so requests
static
NSRecursiveLock
*
sessionCookiesLock
=
nil
;
...
...
Please
register
or
login
to post a comment