Closed hellysmile closed 7 years ago
It is bad practice to open\close TCP connection for each api request.
Client must create on __init__ requests.Session and explicitly close it.
__init__
requests.Session
How could one fix that @hellysmile?
https://github.com/os/slacker/commit/4405f6c7642ee340c898dc3475462ba04fda3d8f
It is bad practice to open\close TCP connection for each api request.
Client must create on
__init__
requests.Session
and explicitly close it.