Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retain URLSessions #829

Open
mathebox opened this issue Sep 17, 2020 · 0 comments
Open

Retain URLSessions #829

mathebox opened this issue Sep 17, 2020 · 0 comments

Comments

@mathebox
Copy link
Member

mathebox commented Sep 17, 2020

Is your feature request related to a problem? Please describe.
When using the Stockpile to sync data, a new URLSession is created for each sync operation.
However URLSessions should be retained to allow system optimizations like caching.

Describe the solution you'd like
Retain the URLSession for sync operations.

Affected Component
Stockpile

Additional context

  • Do not forget the SyncPushEngine
  • There are at least two different URLSeessionConfigurations: waitingDefault and nonExpensive
  • It might be worth considering to configure the individual requests instead of using different session configurations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant