Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on an app (iPhone) that makes several Http Request to a RESTFULL web server. When I lauch the app, the request is performed and very often it timeouts. If I perform the request once again (a dedicated button is in the UI for this purpose) it's quite fast (no time out). Do you have any hints on the location of this problem ? Could it be on server side (I running a rack application on nginx / passenger) ?

Thanks a lot for you help. Regards, Luc

share|improve this question
DNS problems? How is resolved the hostname? – lg. Jul 19 '10 at 12:59
well, I do not really know. There is no problem if I use a curl from command line but on iPhone (or simulator) I have the timeout at (almost) every first atempt. – Luc Jul 20 '10 at 7:14
up vote 0 down vote accepted

Seems to be linked to subdomain dns lookup.... also seems to be a known problem. I set up a domain instead of subdomain and thinks works fine now.

Thanks and Regards,


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.