Increase connection timeout (#13413)
This commit is contained in:
parent
d1e918fa10
commit
e38d48021c
@ -105,7 +105,7 @@ Future<VMIsolateRef> _connectToRunnerIsolate(int vmServicePort) async {
|
|||||||
throw 'not ready yet';
|
throw 'not ready yet';
|
||||||
return isolate;
|
return isolate;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const Duration connectionTimeout = const Duration(seconds: 2);
|
const Duration connectionTimeout = const Duration(seconds: 4);
|
||||||
if (new DateTime.now().difference(started) > connectionTimeout) {
|
if (new DateTime.now().difference(started) > connectionTimeout) {
|
||||||
throw new TimeoutException(
|
throw new TimeoutException(
|
||||||
'Failed to connect to the task runner process',
|
'Failed to connect to the task runner process',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user