Commit f66f79a
authored
Use buffered channels for close notify signaling (awslabs#78)
Using unbuffered channels results in potential blocks during `notifyClosed` if calling code fails or is otherwise unable to receive on the returned channel. In particular this fixes an issue where calling code was awaiting either notify close or context done. When context done happened first this caused the notifyClose call to hang, causing an api gateway timeout.1 parent 5e4a039 commit f66f79a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments