-
- Downloads
notifications: stream HTTP data instead of waiting for response
The proxy-server route /{key} produces a HTTP stream which reflects values obtained by a DHT get. The stream is not guaranteed to signal termination. Previously we were waiting on a complete response which in several scenarios would never arrive. This causes the stream data to not be parsed, and for the URLSession block until a timeout, which would cause queueing of any incoming notifications. This commit changes the design to stream the HTTP content and handle lines (JSON) asynchronously as they are received. Gitlab: #359 Change-Id: I469bdde0a3c1ad9d0ac46285740c0f55fd377018
Showing
- .gitignore 3 additions, 0 deletions.gitignore
- Ring/Ring.xcodeproj/project.pbxproj 19 additions, 0 deletionsRing/Ring.xcodeproj/project.pbxproj
- Ring/Ring/Bridging/DRingAdapter.mm 1 addition, 1 deletionRing/Ring/Bridging/DRingAdapter.mm
- Ring/Ring/Constants/Constants.swift 1 addition, 0 deletionsRing/Ring/Constants/Constants.swift
- Ring/jamiNotificationExtension/Adapter.mm 3 additions, 3 deletionsRing/jamiNotificationExtension/Adapter.mm
- Ring/jamiNotificationExtension/AdapterService.swift 3 additions, 0 deletionsRing/jamiNotificationExtension/AdapterService.swift
- Ring/jamiNotificationExtension/NotificationService.swift 452 additions, 217 deletionsRing/jamiNotificationExtension/NotificationService.swift
This diff is collapsed.
Please register or sign in to comment