iOS Development: Why do I always get the “A connection failure occurred” on the 1st attempt, but success on the next?

前端 未结 4 826
星月不相逢
星月不相逢 2020-12-24 14:17

I\'m using the ASIHTTPRequest lib in my iOS app to make RESTful requests to my Rails 3 web app. I seeing a weird and somewhat consistent error the 1st time I try to make a

4条回答
  •  臣服心动
    2020-12-24 14:55

    i also had to set response setHeader Connection to "close" in by Java servlet

    response.setHeader("Connection", "close");
    

提交回复
热议问题