1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-19 19:01:03 +00:00
supysonic/tests
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
..
api JSON: '_value_' -> 'value' 2019-01-19 15:04:56 +01:00
assets Added method to list genres 2018-12-08 17:18:58 +01:00
base Fix issues with hanging transcoding processes 2019-02-03 23:23:00 -05:00
frontend Using new pony on_connect decorator 2018-08-11 16:16:34 +02:00
managers Automatically create DB tables if needed 2018-08-29 14:56:28 +02:00
__init__.py Delete track dependents before tracks on folder deletion 2018-11-01 14:02:12 +01:00
issue101.py Automatically create DB tables if needed 2018-08-29 14:56:28 +02:00
issue129.py Delete track dependents before tracks on folder deletion 2018-11-01 14:02:12 +01:00
testbase.py Merge branch 'master' into db-setup 2018-09-15 16:04:43 +02:00
utils.py Py3: str/bytes, iterators, etc. 2018-01-11 23:08:53 +01:00