Commit 9cf9183
authored
Turbopack: flush Node.js worker IPC on error (#84077)
If the Nodejs process exited too quickly after `sendError`, Turbopack never received the error message and then previously crashed with panics such as
```
- Execution of PostCssTransformedAsset::process failed
- creating new process
- reading packet length
- unexpected end of file
```
Now, flush the socket before calling `process.exit()`1 parent 237f142 commit 9cf9183
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| 179 | + | |
| 180 | + | |
178 | 181 | | |
179 | | - | |
180 | | - | |
| 182 | + | |
181 | 183 | | |
182 | | - | |
183 | | - | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
0 commit comments