ionic-team / ionic-team/cordova-plugin-ionic-webview

Issue with concurrent range requests on Android

Open
#453 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

When performing concurrent range requests, it seems that response headers get mixed which can cause requests to fail.

Here's a sequence of 5 requests for different mp3 files, where the first and the last request are selected. For all these requests, the `Content-Range` header is set to the `Content-Length` of the **last** request. This causes all requests where the `Content-Length` is smaller than the `Content-Range` to fail.

![image_2019_10_14T15_06_31_023Z](https://user-images.githubusercontent.com/4175777/66765037-5686bd80-eeab-11e9-8c3a-f8c4a4b08385.png)
![image_2019_10_14T15_08_17_308Z](https://user-images.githubusercontent.com/4175777/66765036-55ee2700-eeab-11e9-9a34-04abbe04baeb.png)

Note: If I perform the requests consecutively, i.e. wait for a request to be finished before performing the next one, everything works as expected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.