NSURLConnection timeout bug?
NSURLConnection timeout bug?
- Subject: NSURLConnection timeout bug?
- From: Tito Ciuro <email@hidden>
- Date: Wed, 6 Jul 2005 00:25:30 -0400
Hello,
It seems that NSURLConnection always times out at 30 seconds,
regardless of the value passed in the NSURLRequest. Am I missing
something or is this a bug?
Thanks,
-- Tito
- (void)connect
{
// create the request
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL
URLWithString:@"http://192.168.1.150"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
// create the connection with the request
// and start loading the data
theConnection=[[NSURLConnection alloc]
initWithRequest:theRequest delegate:self];
if (theConnection) {
// Create the NSMutableData that will hold
// the received data
receivedData = [[NSMutableData data]retain];
} else {
// inform the user that the download could not be made
}
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden