sourceforge.net

Menu

#159 De-thread HtmlUnit

Status: closed

Labels: None

Priority: 5

Updated: 2013-10-11

Created: 2010-02-16

Private: No

Ensure that all background JS tasks are executed in a single thread, a model followed by most common browsers.

The attached patch introduces an EventLoop per WebClient. The EventLoop simply runs the earliest job among all the JsJobManagers corresponding to all WebWiindow(s) of the WebClient. To turn off the effect of the patch, you can set
webClient.isSingleThreaded_ = false; in WebClient.java and everything should behave as before.

Discussion


Log in to post a comment.

Read the original on sourceforge.net ↗