Don't rebuild HTTP session with no connections#1020
Don't rebuild HTTP session with no connections#1020martindurant wants to merge 1 commit intofsspec:mainfrom
Conversation
|
@Koncopd , latest aiobotocore doesn't like that; but I'm not sure why we are getting an unstarted session the second time around. |
|
Given that there isn't much cost to "rebuilding" the http_sessions without any actual live sessions, and that it only happens once, I think it's not worth trying to prob aiobotocore in the right direction here. What do you think, @Koncopd ? |
|
As I said, my problem is that rebuilding aiobotocore session (not http sessions) erases the credentials I pass. And if I provide a session, it should not happen that I just lose it on set_session. |
|
Here I mean Line 643 in 731e125 |
|
Btw the failing test (test_session_close) looks strange to me, it runs |
Yes, that is exactly the idea. If I remember, the variable is there to allow a breakpoint in the function, where we know which invocation we are on. |
|
Thank you, i will try to check the problem later. |
Fixes #1019