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-12-17 17:26:58 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ac90541d49f9420c763e4ae2276e5ead5c59f348
ac90541d
1 parent
4046b2bb
Use addTimeInterval: on iPhone OS
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
ac90541
...
...
@@ -21,7 +21,7 @@
#import "ASIInputStream.h"
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.2-3
5
2009-12-17"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.2-3
6
2009-12-17"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
@@ -3091,7 +3091,11 @@ static BOOL isiPhoneOS2;
// Yes, put this request to sleep until a second is up, with extra added punishment sleeping time for being very naughty (we have used more bandwidth than we were allowed)
double
extraSleepyTime
=
(
-
bytesRemaining
/
(
maxBandwidthPerSecond
*
1
.
0
));
[
throttleWakeUpTime
release
];
#if TARGET_OS_IPHONE
throttleWakeUpTime
=
[[
bandwidthMeasurementDate
addTimeInterval
:
extraSleepyTime
]
retain
];
#else
throttleWakeUpTime
=
[[
bandwidthMeasurementDate
dateByAddingTimeInterval
:
extraSleepyTime
]
retain
];
#endif
}
}
[
bandwidthThrottlingLock
unlock
];
...
...
Please
register
or
login
to post a comment