nst / STHTTPRequest

Obj-C / Cocoa HTTP requests for humans
BSD 3-Clause "New" or "Revised" License
825 stars 82 forks source link

Crash with EXC_BAD_ACCESS #16

Closed mtshare closed 10 years ago

mtshare commented 10 years ago

Hi, thank you so much for your awesome library. I don't know exactly when'd this happened but seems that when you try to make multiple request to a url that fails, after a couple of time it crash.

Ex : Sending request to http://example.com... Request failed! Sending request to http://example.com... Request failed! Sending request to http://example.com... Request failed! Sending request to http://example.com... CRASH!

Here a screenshot: https://drive.google.com/file/d/0B5DoPO9ZVZ5zTnFfVE16X0xvX0E/edit?usp=sharing

I also get this: 2014-02-27 01:50:20.569 ASDevelop[20418:3407] NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) (lldb)

nst commented 10 years ago

Thank you for the report. When I look at the screenshot, I wonder what is the value of _errorBlock. Is it possible that it was not properly set?

mtshare commented 10 years ago

Thank you for the quick answer! It was just my mistake... After hours of coding i have realized that errorBlock it was not properly set. This is why i close the issue...

Thanks for your suppot! Keep up the amazing work!!

nst commented 10 years ago

Cool!