pokeb / asi-http-request

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone
http://allseeing-i.com/ASIHTTPRequest
Other
5.78k stars 1.41k forks source link

Does not send requests under some optimization settings #349

Open barumrho opened 11 years ago

barumrho commented 11 years ago

I ran into an issue where ASIFormDataRequest does not actually make a request, or call failed block.

This all worked fine under debug builds. Only when I deployed ad hoc builds I realized that something was failing. After some experimentation, I discovered that changing the compiler optimization -Os to O0 made the issue go away.

I am posting it here so that others may find this issue without spending hours trying to debug.

ripplearc commented 11 years ago

I love this solution, I have been banging my head on the wall for one day!

niveus commented 11 years ago

I ran into the same issue. I really wish someone would update this library so I can turn optimizations back on. It would be nice if someone made it ARC friendly as well.