相关文章推荐
紧张的烤面包  ·  编译器错误 C3861 | ...·  3 周前    · 
爱旅游的牙膏  ·  WebSphere v9, ...·  3 月前    · 
活泼的围巾  ·  CER – Interactive ...·  6 月前    · 
强悍的太阳  ·  android intent ...·  9 月前    · 

Debugging connection timeout in the WebView

user8929955 Nov 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)