Closed Bug 2099387 Opened 3 hours ago Closed 1 hour ago

Beta 162.0b2: Gmail OAuth2 SMTP hangs at "Sending message…" on the second send, one account only

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 162
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 2097852

People

(Reporter: nosake, Unassigned)

Details

Attachments

(2 files)

793 bytes, text/plain
Details
2.77 KB, application/octet-stream
Details
Attached file additional info —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36

Steps to reproduce

Steps to reproduce:

Use Thunderbird Beta 162.0b2 (64-bit, Windows 10) with three Gmail accounts. All use IMAP, and SMTP on smtp.gmail.com port 465, SSL/TLS, OAuth2.
Restart Thunderbird.
Write a new message from Account C and send it. It sends normally.
Write a second new message from Account C and send it.

Actual results

Actual result: The "Sending Message" dialog stays at "Sending message…" with a full progress bar and never finishes. The status bar also stays on "Sending message…". No error message appears. The Error Console shows nothing related, only an unrelated CSS warning.

Expected results

Expected result: The second message sends, as it does from the other two accounts.

Attached file SMTP debug log.log —

Thanks for the report and especially for the SMTP log, it made this easy to pin down.

This is a known regression in Thunderbird 162 Beta. When sending over SSL/TLS (port 465), the secure connection can stall before it is fully set up. Thunderbird then waits forever without showing an error, which is why the dialog stays at "Sending message…". It comes down to timing, so it often hits a connection made shortly after an earlier one, which matches the pattern you found of the first send working and the next one hanging.

The fix has already landed in the development version, and it has been requested for a future 162 Beta update. I'm marking this bug as a duplicate of bug 2097852, where the fix is being tracked. You'll get updates there.

Until the fixed Beta is out, you can work around it by switching each Gmail outgoing server to STARTTLS:

  1. Go to Account Settings → Outgoing Server (SMTP).
  2. Select each Gmail outgoing server and click Edit.
  3. Set Port to 587 and Connection security to STARTTLS.
  4. Leave Authentication method set to OAuth2, and click OK.

Gmail supports this setup, and it isn't affected by the problem. You can switch back to SSL/TLS on port 465 once you're on a Beta that includes the fix.

Status: UNCONFIRMED → RESOLVED
Closed: 1 hour ago
Component: Untriaged → Message Compose Window
Duplicate of bug: 2097852
Resolution: --- → DUPLICATE

"Correction: the second send hangs from all three of my Gmail accounts, not only one. Restarting Thunderbird makes the next single send work, and the one after that hangs. An earlier test that appeared to show only one account affected was not reliable. The attached log shows the second connection to smtp.gmail.com:465 never reaching 'Connected' before I cancelled."

Thanks, I've updated comment 2 to clarify things.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: