Are there know bugs in CFNetworks?
I can’t remember that exact statistics but I vaguely recall some software engineering maxim than a typical program has 1 bug per 100 lines of code [1]. And CFNetwork is much larger than 100 lines (-:
Do you think this can help to get rid of this crash?
Quite possibly. It’s also quite possible that you’ll introduce other bugs that are worse.
The best path forward here is to create a test suite that exercises your networking code extensively, and then run that test suite with the standard memory debugging tools enabled. There are two possible outcomes:
-
It doesn’t crash, which gives you some assurance that whatever problem you’re seeing is either not caused by your networking code or is rare enough that you don’t need to worry too much about it.
-
It does crash, in which case you have something to debug.
Either way, this won’t be wasted effort because, even if you decide to rewrite your networking code, you can use the same test suite as part of its quality assurance.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] Or was in 1 bug per 10 lines of code. Either way, it’s bad.