Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Debugging connection timeout in the WebView

user8929955Nov 4 2014 — edited Nov 5 2014

I've run in an issue with connection timeout in the WebView. Requesting the URL in a browser will result in an answer, however it may take some time. Running the same request from the WebView results in a connection timeout.

There are some points I would like to have your advice:

  • What is the connection timeout for loading a page through the WebView (from issuing the request webEngine.load(url) to the state change failed passes about 40s). The Request in a browser takes about 10s.
  • Can I manipulate the underlying connection of the WebView (as suggested at java - How to connect to an HTTPS URL from a JavaFX application - Stack Overflow)
  • Can I set the connection timeout on the WebEngine/WebKit or per request?
  • Is there an issue targeting this?

Likewise I would be interested to get a handle on the connection so I can evaluate the header data to retrieve useful information (like response was a PDF which cannot be rendered in the WebView)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2014
Added on Nov 4 2014
3 comments
2,215 views