burningmantech / ranger-ims-mac

Ranger Incident Management System—Mac OS Client
Apache License 2.0
4 stars 2 forks source link

apparent hang of HTTP connections in intermittent network conditions #22

Closed wsanchez closed 10 years ago

wsanchez commented 10 years ago

ZG sez:

When I was driving around with incidents & dogbone, I seemed to run into issues where the client would get stuck on retrieving incidents and they would take a while to time out -- I would usually just restart the client. The problem seemed to be related to me having intermittent network access.

Question:

Is there a downside to using NSMutableUrlRequest.setTimeoutInterval: to lower the connection time for idempotent requests? SFAICT, the default value of 60 seconds for the timeout is still being used but the requests seem to be either returning basically right away or not at all.

wsanchez commented 10 years ago

Probably the timeout could be lowered…

wsanchez commented 10 years ago

eb28aed31402dc8e3512c5fd3b108dab7642faf3

wsanchez commented 10 years ago

Please verify in 2.0b2

corprew commented 10 years ago

I'll check this against 2.0b2 this weekend. tx.

corprew commented 10 years ago

The problem no longer occurred but now I got error alerts on timeouts when using the new version.

corprew commented 10 years ago

Vast improvement