Commit 63a1478
[dart:io] Handle http timeout race
In http connection setup, when an explicit connection timeout is set on
the client, the onTimeout callback on the socket future caused the
future to be completed with null. If the 'then' callback on the socket
future ran before the error completer on the connection task, then
a NoSuchMethod error would result.
This CL addresses this issue by checking for null in the 'then'
callback on the socket future, and generating an appropriate
exception.
fixes flutter/flutter#32578
Change-Id: If2e60b1355aa3d80622c644dada8a62a24469567
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112742
Reviewed-by: Siva Annamalai <[email protected]>
Commit-Queue: Zach Anderson <[email protected]>1 parent 9eb2e8d commit 63a1478
1 file changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
1993 | | - | |
1994 | | - | |
1995 | | - | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
1996 | 1996 | | |
1997 | 1997 | | |
| 1998 | + | |
1998 | 1999 | | |
1999 | 2000 | | |
2000 | 2001 | | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
2001 | 2013 | | |
2002 | 2014 | | |
2003 | 2015 | | |
| |||
0 commit comments