{"action":"created","issue":{"url":"https://api.github.com/repos/burnash/gspread/issues/380","repository_url":"https://api.github.com/repos/burnash/gspread","labels_url":"https://api.github.com/repos/burnash/gspread/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/burnash/gspread/issues/380/comments","events_url":"https://api.github.com/repos/burnash/gspread/issues/380/events","html_url":"https://github.com/burnash/gspread/issues/380","id":153270112,"number":380,"title":"Not reusing HTTP connections via a pool?","user":{"login":"pete0877","id":1145723,"avatar_url":"https://avatars.githubusercontent.com/u/1145723?v=3","gravatar_id":"","url":"https://api.github.com/users/pete0877","html_url":"https://github.com/pete0877","followers_url":"https://api.github.com/users/pete0877/followers","following_url":"https://api.github.com/users/pete0877/following{/other_user}","gists_url":"https://api.github.com/users/pete0877/gists{/gist_id}","starred_url":"https://api.github.com/users/pete0877/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pete0877/subscriptions","organizations_url":"https://api.github.com/users/pete0877/orgs","repos_url":"https://api.github.com/users/pete0877/repos","events_url":"https://api.github.com/users/pete0877/events{/privacy}","received_events_url":"https://api.github.com/users/pete0877/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-05T16:32:41Z","updated_at":"2016-05-10T12:11:01Z","closed_at":null,"body":"Seems like operations on the same client object (logged in just once at the start) continues to create new HTTP request sessions because gspread.HTTPSession doesn't try to actually create a HTTP session with connection pooling. \r\n\r\nSo you end up seeing one of these reconnects on every operation:\r\n\r\n...INFO|requests.packages.urllib3.connectionpool|connectionpool.py:756|_new_conn()|Starting new HTTPS connection (1): spreadsheets.google.com\r\n\r\n\r\nI would recommend doing following inside HTTPSession's __init__():\r\n        self.requests_session = requests.Session()\r\n\r\n.. then reusing it rather than asking requests package methods to create new session every time. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/burnash/gspread/issues/comments/218138913","html_url":"https://github.com/burnash/gspread/issues/380#issuecomment-218138913","issue_url":"https://api.github.com/repos/burnash/gspread/issues/380","id":218138913,"user":{"login":"pete0877","id":1145723,"avatar_url":"https://avatars.githubusercontent.com/u/1145723?v=3","gravatar_id":"","url":"https://api.github.com/users/pete0877","html_url":"https://github.com/pete0877","followers_url":"https://api.github.com/users/pete0877/followers","following_url":"https://api.github.com/users/pete0877/following{/other_user}","gists_url":"https://api.github.com/users/pete0877/gists{/gist_id}","starred_url":"https://api.github.com/users/pete0877/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pete0877/subscriptions","organizations_url":"https://api.github.com/users/pete0877/orgs","repos_url":"https://api.github.com/users/pete0877/repos","events_url":"https://api.github.com/users/pete0877/events{/privacy}","received_events_url":"https://api.github.com/users/pete0877/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T12:11:01Z","updated_at":"2016-05-10T12:11:01Z","body":"Here you go:   https://github.com/burnash/gspread/pull/381"}}