Commit efda1ce
committed
http2: return os.ErrDeadlineExceeded from timed-out response body writes
When a server handler writes to a response body after Server.WriteTimeout
has expired, return an error matching os.ErrDeadlineExceeded rather than
"http2: stream closed".
Tested by net/http CL 446255.
For golang/go#56478
Change-Id: I94494cc7e7f8f9a01a663de09fd5b73acc8ea4e4
Reviewed-on: https://go-review.googlesource.com/c/net/+/446257
Run-TryBot: Damien Neil <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>1 parent a870f35 commit efda1ce
1 file changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
627 | 628 | | |
628 | 629 | | |
629 | 630 | | |
| |||
1608 | 1609 | | |
1609 | 1610 | | |
1610 | 1611 | | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1611 | 1620 | | |
1612 | 1621 | | |
1613 | 1622 | | |
| |||
1857 | 1866 | | |
1858 | 1867 | | |
1859 | 1868 | | |
1860 | | - | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
1861 | 1874 | | |
1862 | 1875 | | |
1863 | 1876 | | |
| |||
2471 | 2484 | | |
2472 | 2485 | | |
2473 | 2486 | | |
2474 | | - | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
2475 | 2496 | | |
2476 | 2497 | | |
2477 | 2498 | | |
| |||
0 commit comments