gmailgem / gmail

A Rubyesque interface to Gmail, with all the tools you'll need.
Other
397 stars 119 forks source link

Will not doing gmail.logout cause problems or server slow downs? #214

Closed SamuilDichev closed 8 years ago

SamuilDichev commented 8 years ago

Hi,

So I've made a certain script which connects to my email account and does stuff. I've put this on a cronjob to run every minute and went to bed. In the morning, the server was significantly slower, even after disabling the cronjob. It is only sometimes serving http requests, some times randomly throwing 500s .Is it possible this could be because of forgetting to put a gmail.logout at the end of my script and it's basically opened a bunch of connections to my mailbox which it has never closed? If that's so, is there a way to find them and close them all off?

Thanks.