1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00
supysonic/tests/base
Carey Metcalfe 0ac2376e07 Fix issues with hanging transcoding processes
When a connection that is consuming a generated response is closed,
Flask closes the generator making it raise the special `GeneratorExit`
exception when the program tries to yield from it again. Because the
`transcode` function was called (returning a generator) before being
passed into `set_generated`, the exception was being handled in the
wrong order.

By passing the `transcode` function to `set_generated` and letting
`set_transcode` call it to return a generator while generating the
response for the client, the exception properly bubbles up through
`transcode` into `set_generated`. This allows both of them to handle it
properly by stopping the subproceses and not caching the incomplete
response data respectively.
2019-02-03 23:23:00 -05:00
..
__init__.py Implement a cache manager for album art and transcodes 2019-01-19 15:37:08 -05:00
test_cache.py Fix issues with hanging transcoding processes 2019-02-03 23:23:00 -05:00
test_cli.py Automatically create DB tables if needed 2018-08-29 14:56:28 +02:00
test_config.py Unified file headers 2018-03-04 21:49:56 +01:00
test_db.py Consider embeded art when serializing albums, add relevant test 2018-10-12 19:07:48 -04:00
test_lastfm.py Small touches on logging 2018-11-11 18:58:46 +01:00
test_scanner.py Added tests for flac and ogg 2018-10-08 21:19:22 -04:00
test_secret.py Fixed test 2018-09-15 16:11:17 +02:00
test_watcher.py watcher: log to stderr when no logfile is set 2018-11-11 19:29:58 +01:00