Daniel Boelzle wrote:
tried that, doesn't work. The timer fires on the same thread it has been
created. So if I block the thread via nsIchannel::open()...
Ew, sync requests... they aren't all that well supported in Gecko.
I tried to create the timer on a separate thread
(nsIThreadManaher::newThread), but deadlock when creating a
dispatch-proxy (on trunk only, need to mark the target object
nsIClassInfo::THREAD_SAFE). Please have a look at the attached code, any
ideas?
Don't use threads from DOM contexts, use them only from components.
Odd though, I see you are using thread manager, so you must be using
trunk, and the timer should work there like you expect, I would have
thought... (for HTTP, open() still processes events)
"network.http.request.timeout" in that doc
That doesn't exist in the networking code, the document there must be
outdated.
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network