Reducing requests using https protocol #1452
Replies: 3 comments 8 replies
-
Hi @zlmarshall You can add So something like this
|
Beta Was this translation helpful? Give feedback.
-
Hi all, Ok, I think I've made a little progress in understanding this issue. This is only my understanding from tinkering, adding some printing, and reading some code, so it's entirely possible that I got things wrong — please let me know if that's the case. Here's a simple reproducer for the issue:
Then later on:
My sense is that the solution is to make sure the first chunk gotten in I'm going to keep tinkering a bit, but I wanted to post this diagnosis in case somebody knows how to solve the problem right away. Thanks, |
Beta Was this translation helpful? Give feedback.
-
One more update, with the It does look like my guess was correct, that Best, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When opening ROOT files through the https protocol, as in
https://github.com/atlas-outreach-data-tools/notebooks-collection-opendata/blob/master/13-TeV-examples/uproot_python/HZZAnalysisNew.ipynb
We get a:
Because uproot seems to generate https requests for every (?) interaction with a
TTree
, there's too much traffic on the http endpoint, and we get blocked. We can work around that by downloading the files and accessing them locally:That's not terribly nice, if the aim here is streaming. Is there a way to be more greedy with the https requests from uproot, to have fewer requests and more data per request?
Thanks,
Zach
Beta Was this translation helpful? Give feedback.
All reactions