Looking at [one crash from mozilla::net::ShutdownEvent::PostAndWait](https://crash-stats.mozilla.org/report/index/d96b4d49-e750-49fc-af0d-4a8490200925#allthreads), I see the [Socket Thread stuck here](https://hg.mozilla.org/mozilla-central/annotate/85e23b4d97acb9c2d8c113bbe7956ced0af19cf4/netwerk/base/nsSocketTransportService2.cpp#l1155), waiting probably for some data to arrive, such that the [shutdown event posted here](https://searchfox.org/mozilla-central/rev/f27594d62e7f1d57626889255ce6a3071d67209f/netwerk/protocol/http/nsHttpConnectionMgr.cpp#233) is never even started to be elaborated and thus [this SpinEventLoopUntil](https://searchfox.org/mozilla-central/rev/f27594d62e7f1d57626889255ce6a3071d67209f/netwerk/protocol/http/nsHttpConnectionMgr.cpp#248) does not return before its own timeout.
Bug 1633342 Comment 38 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Looking at [one crash from mozilla::net::ShutdownEvent::PostAndWait](https://crash-stats.mozilla.org/report/index/d96b4d49-e750-49fc-af0d-4a8490200925#allthreads), I see the [Socket Thread stuck here](https://hg.mozilla.org/mozilla-central/annotate/85e23b4d97acb9c2d8c113bbe7956ced0af19cf4/netwerk/base/nsSocketTransportService2.cpp#l1155), waiting probably for some data to arrive, such that the [shutdown event posted here](https://searchfox.org/mozilla-central/rev/f27594d62e7f1d57626889255ce6a3071d67209f/netwerk/protocol/http/nsHttpConnectionMgr.cpp#233) is never even started to be elaborated and thus [this SpinEventLoopUntil](https://searchfox.org/mozilla-central/rev/f27594d62e7f1d57626889255ce6a3071d67209f/netwerk/protocol/http/nsHttpConnectionMgr.cpp#248) does not return before timeout.