Commit 0cf67fa
Fix RTSP server crash on TCP transport connect (#602)
* Initial plan
* Fix RTSP server crash on TCP transport connect
Three fixes:
1. Fix race condition on sessions_ map - accept_task_function now
locks session_mutex_ when modifying sessions_, matching the
locking in session_task_function that iterates/erases sessions.
2. Teardown session after failed SETUP - when TCP transport is
rejected (or any SETUP parse failure), the session is properly
torn down so it gets cleaned up instead of remaining as a zombie.
3. Include CSeq in 461 response - the "Unsupported Transport"
response now includes the sequence number per RTSP protocol.
Co-authored-by: finger563 <213467+finger563@users.noreply.github.com>
* Fix RTSP server crash on TCP transport connect
Co-authored-by: finger563 <213467+finger563@users.noreply.github.com>
* Remove codeql artifact
Co-authored-by: finger563 <213467+finger563@users.noreply.github.com>
* ensure all false return paths from `parse_rtsp_setup_request` respond with an error to the client
* update to use existing function modified instead of new function
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: finger563 <213467+finger563@users.noreply.github.com>
Co-authored-by: William Emfinger <waemfinger@gmail.com>1 parent e95cd45 commit 0cf67fa
3 files changed
Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | | - | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
218 | | - | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | | - | |
222 | | - | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| 361 | + | |
| 362 | + | |
360 | 363 | | |
361 | 364 | | |
362 | 365 | | |
363 | 366 | | |
364 | 367 | | |
365 | 368 | | |
| 369 | + | |
| 370 | + | |
366 | 371 | | |
367 | 372 | | |
368 | 373 | | |
369 | 374 | | |
| 375 | + | |
| 376 | + | |
370 | 377 | | |
371 | 378 | | |
372 | 379 | | |
373 | 380 | | |
374 | 381 | | |
| 382 | + | |
| 383 | + | |
375 | 384 | | |
376 | 385 | | |
377 | 386 | | |
378 | 387 | | |
379 | 388 | | |
380 | 389 | | |
381 | | - | |
382 | | - | |
| 390 | + | |
383 | 391 | | |
384 | 392 | | |
385 | 393 | | |
| |||
389 | 397 | | |
390 | 398 | | |
391 | 399 | | |
| 400 | + | |
| 401 | + | |
392 | 402 | | |
393 | 403 | | |
394 | 404 | | |
395 | 405 | | |
396 | 406 | | |
397 | 407 | | |
| 408 | + | |
| 409 | + | |
398 | 410 | | |
399 | 411 | | |
400 | 412 | | |
| |||
0 commit comments