I tried to run a quick test on Sunday while doing other projects. This time the connection from the tablet closed correctly when it was powered down. I have seen this happen enough that I am sure it will happen again, just a matter of catching it. I did collect logs and at least learned from them that the Thunderbird message 'Folder in use by other connections' is happening due to failing to expunge due to other connections. This could explain another problem we have been seeing from some time. If for whatever reason Mercury crashes while a user is in this state where they have moved or deleted a bunch of stuff from their inbox and expunge fails, messages that were moved come back in the inbox and there will ultimately end up being multiple copies in the trash or whatever folder they were moved to. The last updates to Mercury did reduce the number of crashes, however we are still seeing at least one crash per day.
On a related note, when more than one IMAP client is connected and this is happening, the second one to connect is not able to get new messages in the inbox. We observe this happening with many different IMAP clients, Android, IOS, Thunderbird on PC or Mac, Outlook on PC, all behave the same.
I did capture logs of the test I ran on Sunday, has the two clients problem, but shutting down the tablet did not hang the connection this time. I can get you these logs as long as we can find a way to send them without posting them for the public to see on the forum.
I did try to run a test this morning (Monday) again, however with session logging enabled in the IMAP server we had 700Mbytes of logs in half an hour. At that rate, I can not afford to leave logging on for too long or we run into disk space problems. It would sure be nice if there was a way to limit logging to a specific IP address like can be done in SMTP server. This also makes it a bit difficult to determine exactly which logs to look at. For the moment, I grep them all looking for the existence of a specific IP address.
Things I remember from the day the connection hung last week are 1. The connection remains active in the 'Current Connections and status' window on the Mercury IMAP4 server window. 2. running netstat on the Mercury box shows an established connection to the public static IP address at this end, even an hour after everything at this end has been disconnected from the Internet.
Looks like this is really two problems, probably related. 1. Remote connections occasionally not disconnecting when the should and 2. Inability to connect with more than one IMAP client at the same time.
Gus
<p>I tried to run a quick test on Sunday while doing other projects.&nbsp; This time the connection from the tablet closed correctly when it was powered down.&nbsp; I have seen this happen enough that I am sure it will happen again, just a matter of catching it.&nbsp; I did collect logs and at least learned from them that the Thunderbird message 'Folder in use by other connections' is happening due to failing to expunge due to other connections.&nbsp; This could explain another problem we have been seeing from some time.&nbsp; If for whatever reason Mercury crashes while a user is in this state where they have moved or deleted a bunch of stuff from their inbox and expunge fails, messages that were moved come back in the inbox and there will ultimately end up being multiple copies in the trash or whatever folder they were moved to.&nbsp; The last updates to Mercury did reduce the number of crashes, however we are still seeing at least one crash per day.</p><p>On a related note, when more than one IMAP client is connected and this is happening, the second one to connect is not able to get new messages in the inbox.&nbsp; We observe this happening with many different IMAP clients, Android, IOS, Thunderbird on PC or Mac, Outlook on PC, all behave the same.</p><p>I did capture logs of the test I ran on Sunday, has the two clients problem, but shutting down the tablet did not hang the connection this time.&nbsp; I can get you these logs as long as we can find a way to send them without posting them for the public to see on the forum.</p><p>I did try to run a test this morning (Monday) again, however with session logging enabled in the&nbsp; IMAP server we had 700Mbytes of logs in half an hour.&nbsp; At that rate, I can not afford to leave logging on for too long or we run into disk space problems.&nbsp; It would sure be nice if there was a way to limit logging to a specific IP address like can be done in SMTP server.&nbsp; This also makes it a bit difficult to determine exactly which logs to look at.&nbsp; For the moment, I grep them all looking for the existence of a specific IP address.
</p><p>Things I remember from the day the connection hung last week are 1.&nbsp; The connection remains active in the 'Current Connections and status' window on the Mercury IMAP4 server window.&nbsp; 2.&nbsp; running netstat on the Mercury box shows an established connection to the public static IP address at this end, even an hour after everything at this end has been disconnected from the Internet. </p><p>Looks like this is really two problems, probably related.&nbsp; 1.&nbsp; Remote connections occasionally not disconnecting when the should and 2.&nbsp; Inability to connect with more than one IMAP client at the same time.
</p><p>Gus
</p>