Commit ec8b1df
committed
Use
`kill()` uses `SIGTERM` by default. In `workerd`, this waits for HTTP
connections to close before exiting. Notably, Chrome sometimes keeps
connections open for about 10s, blocking exit. We'd like `dispose()`/
`setOptions()` to immediately terminate the existing process.
Therefore, use `SIGINT` which force closes all connections.
Ref: cloudflare/workerd#244SIGINT when killing runtime process1 parent d0695ad commit ec8b1df
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| |||
0 commit comments