Closed Bug 65273 Opened 25 years ago Closed 1 year ago

Necko needs to have a shutdown for protocol handlers

Categories

(Core :: Networking, defect, P5)

defect

Tracking

()

RESOLVED INACTIVE
Future

People

(Reporter: dougt, Unassigned)

References

Details

(Whiteboard: [necko-would-take])

Necko needs to better manage the protocol handlers. It should allow protocol handlers to register with the IOService. Upon shutdown, the IOService should warn the protocol handlers that they should clean up (eg. cancel any outstanding connections). Necko's IOService should also hold on to the eventQueue service so that the handlers can post messages while they shutdown. Currently the IOService hold WeakReferences to all the handlers. Because of this lack of shutdown functionality, the nsFTPProtocolHandler needs to hold an unused reference to the IOService so that it can ensure its exists when shutdown occurs.
I agree.. this really needs to be cleaned up.
Target Milestone: --- → Future
mass move, v2. qa to me.
QA Contact: tever → benc
This bug is causing a crash on shutdown on Mac, after visiting an FTP site, because FTP attempts to disconnect the control connection after the nsSocketTransportService has been shut down. This causes the STS to attempt to set a pollable event for the socket transport thread after it has been joined. We had to add a hacky workaround in Mac's NSPR code for now.
OS: Windows 2000 → All
Hardware: PC → All
Target Milestone: Future → mozilla0.9.2
Priority: -- → P3
Target Milestone: mozilla0.9.2 → mozilla0.9.3
no way this is going to happen in the 0.9.3 milestone.
Target Milestone: mozilla0.9.3 → mozilla1.0
Simon: can I get the bug number of the Mac patch?
The Mac NSPR workaround for this bug is in attachment 36178 [details] [diff] [review], on bug 69285. These lines: + if (pollDesc->pollingThread->state == _PR_DEAD_STATE) + return PR_FAILURE; should be unnecessary.
Thanks! That was the bug I was concerned was dependent on this problem...
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 (you can query for this string to delete spam or retrieve the list of bugs I've moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Target Milestone: mozilla1.0.1 → Future
moving neeti's futured bugs for triaging.
Assignee: neeti → new-network-bugs
Whiteboard: [necko-would-take]
Priority: P3 → P5
Severity: normal → S3

I don't think this is a problem anymore.
The FTP protocol handler is gone, and Nika did a big refactoring of existing protocol handlers in bug 1793463.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INACTIVE
See Also: → 1793463
You need to log in before you can comment on or make changes to this bug.