OSDN Git Service

b/3491968 stop the hanging of dunkindonuts.com
authorHuahui Wu <hwu@google.com>
Tue, 19 Apr 2011 15:58:00 +0000 (08:58 -0700)
committerHuahui Wu <hwu@google.com>
Tue, 19 Apr 2011 17:02:38 +0000 (10:02 -0700)
commit1360c55ddd4e5ce56a558c055de5b09d250c51b4
tree4678fcd7283c8f3ba9d75f228018934e5a5f501d
parented1aaa7d1c69a85e4c93cec1dbe111554bb34642
b/3491968 stop the hanging of dunkindonuts.com

Same as https://android-git.corp.google.com/g/#change,105743 but in Master.
Changed the waiting to 10 seconds each attempt after asking around.

Sometimes, a sync load can wait forever and lock up the network thread,
here we replace Wait() with TimedWait() with multiple tries to avoid locking.
Unfortunately, TimedWait() doesn't return anything and can't tell if it's
a timeout or a quick pass, so we query timeofday and allow a few seconds for
the system timing error.

Change-Id: I391fb3f815413f17b2927c1e90cbddab7faed071
WebKit/android/WebCoreSupport/WebUrlLoaderClient.cpp