Repository navigation
Commit 01cba5b
fix(socket_mode): seed last_ping_pong_time on first ping in builtin client
The stale-connection check in `check_state()` was gated on
`last_ping_pong_time is not None`, which is only set when a pong frame
arrives. If the server never answered the first ping, the value stayed
`None` forever and the client never disconnected.
Fix by seeding `last_ping_pong_time` with the current time on the first
`check_state()` ping, matching the existing behavior in the aiohttp client.
Fixes #1997
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>1 parent ab4e498 commit 01cba5b
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
129 | 148 | | |
130 | 149 | | |
131 | 150 | | |
| |||
0 commit comments