-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clone web request's state #2287
Conversation
@@ -120,7 +123,8 @@ def clone(self, *, method=sentinel, rel_url=sentinel, | |||
self._time_service, | |||
self._task, | |||
self._loop, | |||
secure_proxy_ssl_header=self._secure_proxy_ssl_header) | |||
secure_proxy_ssl_header=self._secure_proxy_ssl_header, | |||
state=self._state.copy()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope there are no nested dicts/list in state, right?
Codecov Report
@@ Coverage Diff @@
## master #2287 +/- ##
==========================================
+ Coverage 97.24% 97.24% +<.01%
==========================================
Files 39 39
Lines 8094 8096 +2
Branches 1410 1411 +1
==========================================
+ Hits 7871 7873 +2
Misses 97 97
Partials 126 126
Continue to review full report at Codecov.
|
It's impossible to perform deep state copy for an obvious reasons: values are not copyable very often, they could be an opened socket for example. Thus we have 3 options:
I believe the option 2 is better than others. |
@asvetlov What's a case for |
I'd like to extend |
Hm...I see. Then it seems swallow copy is the only option. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Fix for #2284