admin管理员组文章数量:1303068
I am downloading files from my google drive using the Drive API:
GET /{id}?alt=media
For some reason it always takes more than 2 seconds until the server begins with the data transfer.
I am not talking about the overall download speed (throughput), I mean the initial delay between the HTTP request until the first bytes of the file are received. Even if the file content is just a few bytes (plain text) I experience this delay.
I am observing this dealy using python on windows, android on my smartphone (over 5G connection) or a simple curl command with linux. (e.g. curl -H "Authorization: Bearer ya29..." ...1920Cq?alt=media
)
Wireshark also shows this: ~2 seconds delay between packets 19 and 20
The delay also occurs if I download the same file twice over the same HTTPS connection. I would at least expect that the second request of the same file is faster because of some caching mechanism.
The google drive android app and web UI does not seem to suffer from this delay...at least not to this extent.
Where does this delay come from and how can I avoid this?
本文标签:
版权声明:本文标题:Why does it take more than 2 seconds until a file download via the google drive api (files.get with parameter alt=media) starts? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741697205a2393072.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论