Re: NSURLConnection changing the URL

2009-01-21 Thread Mohan Parthasarathy
On Tue, Jan 20, 2009 at 9:17 PM, Michael Vannorsdel wrote: > I've looked into this quite some time ago and have seen NSURLConnection > keep FTP and HTTP connections open even after the originating > NSURLConnection had been deallocated. The same connection was reused for > subsequent NSURLConnect

Re: NSURLConnection changing the URL

2009-01-21 Thread Mohan Parthasarathy
Mike, On Tue, Jan 20, 2009 at 8:45 PM, Michael Ash wrote: > On Tue, Jan 20, 2009 at 7:49 PM, Mohan Parthasarathy > wrote: > >> Is there a way to not to allocate the connection everytime i need to > send > > a new request ? > > > > Yes. I'm pretty sure that the URL loading fr

Re: NSURLConnection changing the URL

2009-01-20 Thread Michael Vannorsdel
I've looked into this quite some time ago and have seen NSURLConnection keep FTP and HTTP connections open even after the originating NSURLConnection had been deallocated. The same connection was reused for subsequent NSURLConnections to the same destination. I never did see these close t

Re: NSURLConnection changing the URL

2009-01-20 Thread Michael Ash
On Tue, Jan 20, 2009 at 7:49 PM, Mohan Parthasarathy wrote: >> Is there a way to not to allocate the connection everytime i need to send > a new request ? > Yes. I'm pretty sure that the URL loading framework will use HTTP keepalives automatically when appropriate. >>>

Re: NSURLConnection changing the URL

2009-01-20 Thread Roland King
Is there a way to not to allocate the connection everytime i need to send a new request ? Yes. I'm pretty sure that the URL loading framework will use HTTP keepalives automatically when appropriate. I am not sure i undrstood this. If i allocate a NSURL connection everytime i need to f

Re: NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
On Tue, Jan 20, 2009 at 4:38 PM, Andrew Farmer wrote: > On 20 Jan 09, at 13:36, Mohan Parthasarathy wrote: > >> On Tue, Jan 20, 2009 at 1:23 PM, Andrew Farmer wrote: >> >>> On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: >>> >>> I want to be able to establish the TCP connection to a server a

Re: NSURLConnection changing the URL

2009-01-20 Thread Andrew Farmer
On 20 Jan 09, at 13:36, Mohan Parthasarathy wrote: On Tue, Jan 20, 2009 at 1:23 PM, Andrew Farmer wrote: On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: I want to be able to establish the TCP connection to a server and do multiple HTTP GETs with different URLs. I thought will achieve th

Re: NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
On Tue, Jan 20, 2009 at 1:23 PM, Andrew Farmer wrote: > On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: > >> I want to be able to establish the TCP connection to a server and do >> multiple HTTP GETs with different URLs. I thought will achieve this by >> allocating a NSURLConnection and then i

Re: NSURLConnection changing the URL

2009-01-20 Thread Andrew Farmer
On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: I want to be able to establish the TCP connection to a server and do multiple HTTP GETs with different URLs. I thought will achieve this by allocating a NSURLConnection and then initWithRequest:urlRequest with a different URL everytime as th

Re: NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
Oops,It looks like initWithRequest seems to work. The problem was in the caching of my UIViewController which has a UIWebView. For UITableView, in viewWillDisAppear, i can invalidate data (by causing a reload and returning no data). I can see that UIWebView has a reload method. But i need to be abl

NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
Hi, I want to be able to establish the TCP connection to a server and do multiple HTTP GETs with different URLs. I thought will achieve this by allocating a NSURLConnection and then initWithRequest:urlRequest with a different URL everytime as there is no other way to set the URL. It looks like tha