Uh oh!
There was an error while loading. Please reload this page.
Make connection return a thread-local instance of http. - #1274
Conversation
theacodes
commented
Dec 9, 2015
@dhermes this is a "basic" fix for #926. It has the drawback that a new We can open up a new bug to create a thread-local object pool and use it to provide http objects. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Dec 10, 2015
I think I like it but I'm scared |
363dcda to
01bf3f5Comparetheacodes
commented
Dec 11, 2015
Agreed. Though, this is the Simplest Thing That Works™. Pooling is a better (more memory/resource friendly) way to do it, but as I said we can take small steps towards that. |
7daeccf to
8417e64Comparedhermes
commented
Dec 14, 2015
@tseaver Can you weigh in? This will have big implications |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
6836a46 to
99daaafCompare
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fixesgoogleapis#926, and opens up the possibility of using an object pool later.
99daaaf to
7148ef7Comparetheacodes
commented
Jan 4, 2016
dhermes
commented
Jan 4, 2016
No this PR is not obsolete. We won't be fixing |
theacodes
commented
Jan 4, 2016
Gotcha. Let me know if there's anything I need to do to move this along. |
dhermes
commented
Jan 4, 2016
Was waiting to hear from @tseaver. I think I'd prefer us writing a custom |
theacodes
commented
Jan 4, 2016
Sounds somewhat reasonable, though what sounds even more reasonable is just using urllib3. Not sure how you feel about that. Either way, can we do it with another bug/PR? |
dhermes
commented
Jan 4, 2016
I am all for it, but we need to make |
theacodes
commented
Jan 4, 2016
SGTM. In a related effort, I've been trying to make sure urllib3 works on App Engine. |
dhermes
commented
Jan 4, 2016
Ha! Very nice. |
bendemaree
commented
Jan 5, 2016
@jonparrott It does (mostly) though it will use Edit: |
theacodes
commented
Jan 5, 2016
@bendemaree it's now configurable, and there's a PR to requests-toolbelt to enable ongoing support for GAE. Regardless, I think it's better to do this now, then discuss how we want to support other http libraries in another bug. |
theacodes
commented
Jan 5, 2016
Let's continue the discussion around the http library/transport over at #1346. |
dhermes
commented
Jan 5, 2016
OK |
bendemaree
commented
Jan 5, 2016
@jonparrott Excellent info, thank you. 👍 |
dhermes
commented
Sep 23, 2016
@jonparrott Shall we close this PR? |
theacodes
commented
Sep 23, 2016
Yeah On Fri, Sep 23, 2016, 3:25 PM Danny Hermes notifications@github.com wrote:
|
In my case..i fixed the thing with NOT using the shared connection..and downloading files in chunks async from cloud storage. |
…1274) Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairn@google.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
* docs(samples): add table snapshot sample * docs(samples): fix region tag
* chore: remove deprecated methods in samples and tests * update method
* observability: PDML + some batch write spans This change adds spans for Partitioned DML and making updates for Batch. Carved out from PR #1241. * Add more system tests * Account for lack of OpenTelemetry on Python-3.7 * Update tests * Fix more test assertions * Updates from code review * Update tests with code review suggestions * Remove return per code review nit
Fixes#926, and opens up the possibility of using an object pool later.