Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
Now one can set timeout on XMLRPCRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaykasyanov committed Aug 9, 2012
1 parent 7d5e62a commit b9cb20c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XMLRPCRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

- (void)setMethod: (NSString *)method withParameters: (NSArray *)parameters;

- (void)setTimeoutInterval: (NSTimeInterval)timeout;

#pragma mark -

- (NSString *)method;
Expand Down
5 changes: 5 additions & 0 deletions XMLRPCRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ - (void)setMethod: (NSString *)method withParameters: (NSArray *)parameters {
[myXMLEncoder setMethod: method withParameters: parameters];
}

- (void)setTimeoutInterval: (NSTimeInterval)timeout
{
[myRequest setTimeoutInterval:timeout];
}

#pragma mark -

- (NSString *)method {
Expand Down

0 comments on commit b9cb20c

Please sign in to comment.