Closed Bug 555450 Opened 14 years ago Closed 14 years ago

Reconnecting to IMAP server hangs

Categories

(MailNews Core :: Networking: IMAP, defect)

1.9.1 Branch
x86_64
FreeBSD
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: mi+mozilla, Unassigned)

Details

(Whiteboard: closeme 2010-11-20 [needs reporter feedback])

Hello!

After upgrading from Thunderbird-2.0.x to 3.0.x (currently 3.0.3) I can only access my e-mail right after starting the application.

If an IMAP connection is dropped for whatever reason, thunderbird would not reconnect to the same server. On my side, thunderbird will eventually tell me, that "Connection to server my.server.com timed out". On the server side, Dovecot logs:

bonkers dovecot: imap-login: Disconnected (no auth attempts): rip=MY.IP.ADD.RES, lip=SER.VER.IP.ADD

Note the "no auth attempts" part -- there is a TCP-connection, but the client, apparently, never presents the username to the server again. The server is configured to use STARTTLS (port 143), check new messages every 7 minutes.

The same problem exists with imap.gmail.com (port 993).

I have no problems connecting to the same server from office, where I also run thunderbird-3.0.3, but on a 32-bit Linux (rather than 64-bit FreeBSD at home).

Other users connect to the same server with various versions of KMail, and my blackberry duly gets the messages via imap from it too.
Forgot to mention, what might be related problems:

1. Checking the installed extensions for new versions hangs forever.
2. Trying to install a new extension hangs forever (at the "checking compatibility step").
3. Thunderbird hangs on exit -- the windows disappear, but the thunderbird-bin process remains -- unless I exit within the first few minutes, before the reconnection problem described manifests itself.
Component: General → Networking: IMAP
Product: Thunderbird → MailNews Core
QA Contact: general → networking.imap
Version: 3.0 → 1.9.1 Branch
There several known issues which can produce phenomenon you saw with IMAP.
(a) PC's IP address is changed by DHCP because ou retention period.
(b) Server which Tb accessed went maintenance mode, and started to use different IP address/different physical server(DNS roudnd robin etc. is used. Gmail IMAP is one of them). Problem like "DNS chache is not immediately cleared" is also relevant.
(c) Upon wake up from long sleep, (a) or (b) occurs, or connection error happens because many activities at same time.

In any case, if IDLE command is used, problem you saw can occur because Tb has some problems around IDLE.
(1) Connection error while IDLE is not processed well.
(2) Error to IDLE command is not processed properly.
If this kind of problem occurs when (a), (b), (c) or when network error exists, Tb doesn't start connection from clean status.
In some other bugs for similar phenomena to yours, reporters said;
  (i)  "Work Offline, then Gobak Online" was workaround.
  (ii) After disabling "use of IDLE command", frequency of problem was reduced.
Can you try (i) when you encounter problem again?
Can you try (ii) after several tries of (i)?
Mikhail, we need more info, and need response to comment 2
=> unco, not enough detail yet to move to developer
Status: NEW → UNCONFIRMED
Ever confirmed: false
Whiteboard: [needs reporter feedback]
Whiteboard: [needs reporter feedback] → closeme 2010-11-20 [needs reporter feedback]
RESOLVED INCOMPLETE due to lack of response to last question. If you feel this change was made in error, please respond to this bug with your reasons why.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.