This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 3593d42
Workaround: wait longer for IPC socket file to appear (#1197)
* trinity/utils/ipc: increase wait_for_ipc() timeout to 10 seconds.
It seems that on machines with slow I/O, creation of the socket
file may take a long while.
* trinity: log duration of wait for IPC file.
* trinity/main: minor, move wait_for_ipc() one line down.
It is the networking process that needs the socket to be present,
so move the wait-for-socket line closer to starting the former.
* trinity/utils/ipc: WARN on timeout reached, demote to DEBUG on success.
* trinity/utils/ipc: minor, change condition from `>` to `>=`.
Dummy commit to force CircleCI re-run.
* Revert previous four commits - taking alrenative approach.
Will reuse previous loop structure in wait_for_ipc(), and raise an
exception on timeout instead.
* trinity: raise exception in wait_for_ipc() on reaching timeout.
The boot procedure still won't try to shut down cleanly, but will
at least print an error message _and_ a warning about proceeding
anyway.
* Change to exit trinity if database IPC connection cannot be made.1 parent 931e915 commit 3593d42
2 files changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | | - | |
16 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
0 commit comments