docs(readme): document handshake blocking and widen fuzz timeout
2 files · +4 -3
M .github/workflows/fuzz.yml +1 -1
| @@ -8,7 +8,7 @@ permissions: | |||
| 8 | 8 | jobs: | |
| 9 | 9 | fuzz: | |
| 10 | 10 | runs-on: ubuntu-latest | |
| 11 | - | timeout-minutes: 45 | |
| 11 | + | timeout-minutes: 60 | |
| 12 | 12 | steps: | |
| 13 | 13 | - uses: actions/checkout@v4 | |
| 14 | 14 | - uses: actions/setup-go@v5 | |
| @@ -8,7 +8,7 @@ permissions: | |||||
| 8 | jobs: | 8 | jobs: | ||
| 9 | fuzz: | 9 | fuzz: | ||
| 10 | runs-on: ubuntu-latest | 10 | runs-on: ubuntu-latest | ||
| 11 | - | timeout-minutes: 45 | 11 | + | timeout-minutes: 60 |
| 12 | steps: | 12 | steps: | ||
| 13 | - uses: actions/checkout@v4 | 13 | - uses: actions/checkout@v4 | ||
| 14 | - uses: actions/setup-go@v5 | 14 | - uses: actions/setup-go@v5 | ||
M README.md +3 -2
| @@ -129,8 +129,9 @@ func Example() { | |||
| 129 | 129 | - **Callbacks.** They may queue requests, call `Expect` and `PrefetchXIDs`. | |
| 130 | 130 | They must not call `Dispatch`, `Sync`, `InternAtoms`, or `NewXID` when it | |
| 131 | 131 | needs a refill. | |
| 132 | - | - **Blocking.** Only `Sync`, `InternAtoms` and a `NewXID` refill block, for at | |
| 133 | - | most 5 s, and are meant for startup. Use `XIDsLow` and `PrefetchXIDs` to | |
| 132 | + | - **Blocking.** `Dial` and `NewConn` block for at most 10 s during the | |
| 133 | + | handshake. Only `Sync`, `InternAtoms` and a `NewXID` refill block after | |
| 134 | + | that, for at most 5 s, and are meant for startup. Use `XIDsLow` and `PrefetchXIDs` to | |
| 134 | 135 | keep the event loop non-blocking. | |
| 135 | 136 | - **Errors.** A failed `Buf` is sticky: later requests return 0 and `Flush` | |
| 136 | 137 | returns the error. | |
| @@ -129,8 +129,9 @@ func Example() { | |||||
| 129 | - **Callbacks.** They may queue requests, call `Expect` and `PrefetchXIDs`. | 129 | - **Callbacks.** They may queue requests, call `Expect` and `PrefetchXIDs`. | ||
| 130 | They must not call `Dispatch`, `Sync`, `InternAtoms`, or `NewXID` when it | 130 | They must not call `Dispatch`, `Sync`, `InternAtoms`, or `NewXID` when it | ||
| 131 | needs a refill. | 131 | needs a refill. | ||
| 132 | - | - **Blocking.** Only `Sync`, `InternAtoms` and a `NewXID` refill block, for at | 132 | + | - **Blocking.** `Dial` and `NewConn` block for at most 10 s during the |
| 133 | - | most 5 s, and are meant for startup. Use `XIDsLow` and `PrefetchXIDs` to | 133 | + | handshake. Only `Sync`, `InternAtoms` and a `NewXID` refill block after |
| 134 | + | that, for at most 5 s, and are meant for startup. Use `XIDsLow` and `PrefetchXIDs` to | |||
| 134 | keep the event loop non-blocking. | 135 | keep the event loop non-blocking. | ||
| 135 | - **Errors.** A failed `Buf` is sticky: later requests return 0 and `Flush` | 136 | - **Errors.** A failed `Buf` is sticky: later requests return 0 and `Flush` | ||
| 136 | returns the error. | 137 | returns the error. | ||