Gmail IMAP not closing connection
-
Hello, I have my imap set up to receive mail and I placed a 6 second connection timeout on the configure and then a 1 second reset timeout (time after action that connection is reset) although for some reason after a thread successfully grabs a code from the email the connection doesn't seem to reset immediately. There are no further actions that use the email after this but it just seems that it takes an extended amount of time. Is there any sure shot way to instantly close after an action is successful to allow for another thread to access the google IMAP? I know it's 15 concurrent connections at a time, I just can't figure out why the connection isn't being closed immediately.
-
@AnimatioLN, you can close the connection yourself by executing the code:
_InMail.getApi().reset();