-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set/get the timeout on a connection? #11
Comments
Currently it just uses the default value for NSURLConnection. FSNConnection does not expose the NSMutableURLRequest on which you would set the timeout, as well as cache policy and some other potentially useful variables. This should probably be enhanced. I haven't thought about the design in very much detail, but there are two ways i can see accomplishing this: 1: just add more properties to NSURLConnection that get passed on to the internal NSMutableURLRequest. The advantages are:
2: add an NSMutableURLRequest urlRequest property to FSNConnection, and then refactor the +(id)with… constructor so that by default it creates a request with the argument url.
Thoughts? |
My vote would be for option 1, more properties. There's already a bunch of time-related properties ( My 2 cents. |
Is there a default value? I skimmed the source, but couldn't find any instance of "timeout".
The text was updated successfully, but these errors were encountered: