Fwd: ITW probes https first

Alex Kashchenko akashche at redhat.com
Wed Oct 31 21:15:56 UTC 2018


Hi,

Forwarding from ojdkbuild list, AFAIU the problem is not specific to 
ojdkbuild launcher.

ITW seems to try "https://" URL first and if HTTPS connection hangs that 
causes problems.

-------- Forwarded Message --------
Subject: ITW probes https first
Date: Tue, 30 Oct 2018 12:33:17 -0700 (PDT)
From: Bernd Eckenfels <ecki at zusammenkunft.net>
To: ojdkbuild <ojdkbuild at googlegroups.com>

When I start javaws.exe from the command line (or use a java.exe command 
line) I notice that with my application ITW takes very long to start 
with the download.
I copied the full comand line from the launcher, adding -verbose and 
noticed the following:

It takes long as it tries to connect with https first (and since its a 
http server it probably hangs in the handshake):

"C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.191-1\bin\java.exe" 
 > -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -splash:"C:/Program > 
Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.191-1/webstart/javaws_splash.png" 
 > -Xbootclasspath/a:"C:/Program > 
Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.191-1/webstart/javaws.jar" > 
-classpath "C:/Program > 
Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.191-1/jre/lib/rt.jar" > 
-Ditw.userdata="C:/User/AppData/Local/ojdkbuild/java-1.8.0-openjdk-1.8.0.191-1.b12.ojdkbuild.windows.x86_64/webstart/" 
 > -Dicedtea-web.bin.name=javaws.exe 
-Dicedtea-web.bin.location="C:/Program > 
Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.191-1/webstart/javaws.exe" > 
net.sourceforge.jnlp.runtime.Boot -Xnofork -verbose > 
http://127.0.0.1:10000/app/frontend.jnlp
> ...
> All possible urls for location=http://127.0.0.1:10000/app/frontend.jnlp 
> state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING : 
> [https://127.0.0.1:10000/app/frontend.jnlp, 
> https://127.0.0.1:10000/app/frontend.jnlp, 
> http://127.0.0.1:10000/app/frontend.jnlp, 
> http://127.0.0.1:10000/app/frontend.jnlp]
> Connecting https://127.0.0.1:10000/app/frontend.jnlp
> Adding 
> sun.net.www.protocol.https.DelegateHttpsURLConnection:https://127.0.0.1:10000/app/frontend.jnlp
> done https://127.0.0.1:10000/app/frontend.jnlp
> ...
> Browser selected proxies: [DIRECT]
> Selected proxies: [DIRECT]
>

When its downloaded its not much faster unless i specify the -noupdate 
option.

Any idea why it is doing that and how to avoid it? It does not help to 
specify "-jnlp http://.." or "jnlp://.." as the url.

Gruss
Bernd



-- 
You received this message because you are subscribed to the Google 
Groups "ojdkbuild" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to ojdkbuild+unsubscribe at googlegroups.com.
To post to this group, send email to ojdkbuild at googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ojdkbuild/451f977c-5750-454f-8bd1-a9abe770a0c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



More information about the distro-pkg-dev mailing list