Increase the timeout for pwrite on android
The increase is necessary because with the default timeout pwrite often times out on android. Most likely it happens when a new page is created on the device.
Differential D7788
Increase the timeout for pwrite on android tberghammer on Feb 20 2015, 7:37 AM. Authored by
Details
Diff Detail Event TimelineComment Actions Please see my comments.
Comment Actions
Yes
I'm nervous that adb and per-device write times are incredibly difficult to predict. We should let this be a little sloppy. Comment Actions From now on this CL is depends on D7826
|
It will be great to have sort of ScopedTimeout class which sets a new timeout in constructor (along with saving a previous old timeout value) and resets old value in destructor.
As I can see such pattern (set new timeout/ restore old timeout) has a few occurrences