Open Bug 1817356 Opened 2 years ago Updated 2 years ago

potential deadlock in TCPSocket::ActivateTLS

Categories

(Core :: Networking, defect, P3)

Unspecified
All
defect

Tracking

()

People

(Reporter: mkmelin, Unassigned)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1816633 +++

Following up on Emilio's 1816633 comment 2.

Bug 1809755 introduced a very similar issue (sync dispatch from main to socket thread). Is there any reason that really needs to be sync?

Component: General → Networking
Product: Thunderbird → Core
Version: Thunderbird 111 → unspecified

Maybe something like this would be better? It works, but I'm not familiar enough to say if it's the right thing t do.

I think this makes sense. Kai, could you take a look?
I'm not sure why that runnable is sync. If calling upgradeToSecure needs to block, then maybe we can make it a promise, or pass it a callback instead?

Severity: -- → S3
Flags: needinfo?(kaie)
Priority: -- → P3
Whiteboard: [necko-triaged]

Valentin, please see my comment in phab, is there a risk that it creates a race?

Flags: needinfo?(kaie)
Depends on: 1809755

(In reply to Kai Engert (:KaiE:) from comment #4)

Valentin, please see my comment in phab, is there a risk that it creates a race?

Yes, Dana already answered that. It would be better to make that a promise.

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

Attachment

General

Created:
Updated:
Size: