site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Hi, I'm trying to track down a problem with my app not closing the sockets when using CFHTTPMessageCreateRequest(). Once the request has finished loading I clean things up with the following: - (void)finishLoad { if (_readStreamRef) { CFReadStreamSetClient(_readStreamRef, kCFStreamEventNone, NULL, NULL); CFReadStreamUnscheduleFromRunLoop(_readStreamRef, CFRunLoopGetCurrent(), kCFRunLoopCommonModes); CFReadStreamClose(_readStreamRef); CFSocketInvalidate(); CFRelease(_readStreamRef); _readStreamRef = NULL; } isFinished = YES; } Because my app can upload a couple of thousand file in one session, I am running out of file descriptors. Is there something that I'm not doing to get the underlying socket to close properly? thanks, Greg _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Greg Hulands