summaryrefslogtreecommitdiff
path: root/startYACY_debug.bat
diff options
context:
space:
mode:
authorreger <reger18@arcor.de>2015-07-29 23:30:05 +0200
committerreger <reger18@arcor.de>2015-07-29 23:30:05 +0200
commit2fb6ebe88a6eb3d0bf565e212abf79c71da37ae2 (patch)
treef1168a66355158a8c7f70170c2a11a5118851a96 /startYACY_debug.bat
parentfbeae20b3a6fadd940613370467228b175ee8dce (diff)
move java environment parameter setting disabling SNI (Server Name Indicator) support for https connections from code to startup script allowing admin to ~easy/transparent alter the YaCy default FALSE setting.
Background: some user report problem with connecting/crawling some sites via https which require SNI support (by default switched off in YaCy). On the other hand systems not demanding SNI support are sometimes not properly configured and due to a bug/feature in java 1.7 connection is aborted. The later is more often the case, so the default is still fine. With the java start parameter expert user can no alter the startparameter to -Djsse.enableSNIExtension=true (java default) if they crawl more hosts requiring SNI support. The alternative to let YaCy try both during https handshake (deep inside the httpclient) is not pursut at this time.
Diffstat (limited to 'startYACY_debug.bat')
-rw-r--r--startYACY_debug.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/startYACY_debug.bat b/startYACY_debug.bat
index 28bafe8be..94986af98 100644
--- a/startYACY_debug.bat
+++ b/startYACY_debug.bat
@@ -17,7 +17,9 @@ if exist DATA\SETTINGS\httpProxy.conf GoTo :RENAMEINDEX
if exist DATA\SETTINGS\yacy.conf GoTo :GETSTARTOPTS
:STARTJAVA
-set javacmd=%javacmd% -XX:-UseGCOverheadLimit -Djava.awt.headless=true -Dfile.encoding=UTF-8
+set javacmd=%javacmd% -XX:-UseGCOverheadLimit -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djsse.enableSNIExtension=false
+Rem -Djsse.enableSNIExtension=false fix a ssl problem in Java 1.7, see http://teknosrc.com/javax-net-ssl-sslprotocolexception-handshake-alert-unrecognized_name-solved/
+
Rem Starting YaCy
Echo Generated classpath:%CLASSPATH%
Echo JRE Parameters:%javacmd%