Skip to content

Disable streaming for pylons requests, fixes ckan/ckan#4431#4657

Merged
smotornyuk merged 1 commit intockan:masterfrom
bzar:fix-popped-wrong-app-context
Apr 11, 2019
Merged

Disable streaming for pylons requests, fixes ckan/ckan#4431#4657
smotornyuk merged 1 commit intockan:masterfrom
bzar:fix-popped-wrong-app-context

Conversation

@bzar
Copy link
Contributor

@bzar bzar commented Feb 15, 2019

Fixes #4431

Proposed fixes:

Disable streaming responses for pylons as they cause threading issues under heavy load.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

@wardi
Copy link
Contributor

wardi commented Feb 15, 2019

This will affect streaming downloads for datastore dump. Maybe that's something that we can live with and fix once migrating the datastore extension to flask?

@smotornyuk smotornyuk self-assigned this Feb 19, 2019
@wardi
Copy link
Contributor

wardi commented Mar 14, 2019

@smotornyuk can we merge this now? the datastore controller will have to be replaced with a flask view anyway

@smotornyuk
Copy link
Member

Yes, in that case i see no problems with this change

@smotornyuk smotornyuk merged commit 96a1277 into ckan:master Apr 11, 2019
alexandru-m-g added a commit to OCHA-DAP/hdx-ckan that referenced this pull request Apr 21, 2019
More info: (Fix could cause problems with streaming downloads
for datastore dump)
ckan/ckan#4431
ckan/ckan#4657
Zharktas added a commit to vrk-kpa/api-catalog that referenced this pull request Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

exception after upgrade to 2.8.1 - Popped wrong app context

3 participants