Skip to content

Commit

Permalink
[#14] increase cancel timeout polling frequency to decrease cancel time
Browse files Browse the repository at this point in the history
  • Loading branch information
vickeryj committed Jan 15, 2009
1 parent 0e26ade commit aebd8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/lib/Connection.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ + (Response *)sendRequest:(NSMutableURLRequest *)request withUser:(NSString *)us
[connection scheduleInRunLoop:runLoop forMode:NSDefaultRunLoopMode];
[connection start];
while (![connectionDelegate isDone]) {
[runLoop runUntilDate:[NSDate dateWithTimeIntervalSinceNow:.5]];
[runLoop runUntilDate:[NSDate dateWithTimeIntervalSinceNow:.3]];
}
Response *resp = [Response responseFrom:(NSHTTPURLResponse *)connectionDelegate.response
withBody:connectionDelegate.data
Expand Down

0 comments on commit aebd8d9

Please sign in to comment.