Commit a8caa99
fix: Fix SSE client read timeout handling
- Replace SetReadDeadline approach with async read + timeout pattern
- Use goroutines for non-blocking reads with proper timeout enforcement
- Ensure timeout errors are properly sent to the errors channel
- Fixes failing TestStream/read_timeout_handling test
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent ddaad36 commit a8caa99
1 file changed
+42
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
| |||
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
206 | 224 | | |
207 | | - | |
208 | | - | |
209 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
210 | 244 | | |
211 | 245 | | |
212 | 246 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 247 | + | |
| 248 | + | |
216 | 249 | | |
217 | 250 | | |
218 | 251 | | |
| |||
223 | 256 | | |
224 | 257 | | |
225 | 258 | | |
226 | | - | |
| 259 | + | |
227 | 260 | | |
228 | 261 | | |
229 | 262 | | |
230 | 263 | | |
231 | 264 | | |
| 265 | + | |
| 266 | + | |
232 | 267 | | |
233 | 268 | | |
234 | 269 | | |
| |||
0 commit comments