[Dovecot] Gnus and dovecot time out
Could someone suggest what the solution here is? Dovecot is terminating the connection to Gnus after a certain period of activity. It's my own mail server so no need to worry about "hogging resources". Should/could Dovecot be configured to keep the connection alive, or should Gnus be programmed to automatically reopen the conneection? The current problem that one can not leave an IMAP group if the connection is cut by the server.
Here is the text posted and replied to on the gnus usenet:
,----
| I have the same problem as the article I link and reproduce below. Is
| there a way to get Gnus to keep an IMAP session open without using a
| daemon to check for all new messages regularly?
|
| http://osdir.com/ml/emacs.gnus.user/2006-02/msg00133.html
|
| ,----
| | Subject: Gnus closing imap connection
| | List-id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" <info-gnus-english.gnu.org>
| |
| | My IMAP connection closes and Gnus does not reopen it. I have to go to
| | the "servers buffer" and do "O" to reopen. Then in a while it closes
| | again.
| |
| | In the " *nnimap* localhost" buffer I see this:
| |
| | ===
| | * BYE Disconnected for inactivity.^M
| | - Peer has closed the GNUTLS connection
| |
| | Process imap finished
| | ===
| |
| | Any idea how to fix it?
| |
| |
| | --
| | vedm
| |
| |
| |
| ----
----
,---- | Same here...there is only line like: | | "dovecot: 2008-01-31 08:50:38Info: IMAP(gour): Disconnected for | inactivity" | | in dovecot's log. | | Any workaround is appreciated... | | Sincerely, | Gour `----
On Thu, 2008-01-31 at 17:51 +0100, Richard G Riley wrote:
Could someone suggest what the solution here is? Dovecot is terminating the connection to Gnus after a certain period of activity. It's my own mail server so no need to worry about "hogging resources". Should/could Dovecot be configured to keep the connection alive, or should Gnus be programmed to automatically reopen the conneection? The current problem that one can not leave an IMAP group if the connection is cut by the server. .. | "dovecot: 2008-01-31 08:50:38Info: IMAP(gour): Disconnected for | inactivity"
I'd say this is a Gnus bug. If an IMAP client wants the connection to stay open, it should send something at least every 29 mins. Most (if not all) IMAP servers disconnect connections after 30 minutes of idling. This is hardcoded in Dovecot, but you can of course change it:
src/imap/common.h: #define CLIENT_IDLE_TIMEOUT (60*30)
participants (2)
-
Richard G Riley
-
Timo Sirainen