- remove unused manual http KeepAlive config

(reducing references to obsolete httpdemon)
- add port info to settings_http
pull/1/head
reger 11 years ago
parent 5746aae3db
commit 2dabe2009d

@ -719,9 +719,6 @@ wordCacheMaxCount = 50000
# by the firewall to yacy running on port 8090 (192.168.0.1:8090)
isTransparentProxy=false
# Specifies if yacy should use the http connection keep-alive feature
connectionKeepAliveSupport=true
# Specifies the timeout the proxy sould use
proxy.clientTimeout = 60000

@ -103,10 +103,6 @@
<td>Transparent Proxy Support is:</td>
<td class="settingsValue">#[isTransparentProxy]#</td>
</tr>
<tr>
<td>Connection Keep-Alive Support is:</td>
<td class="settingsValue">#[connectionKeepAliveSupport]#</td>
</tr>
<tr>
<td>Send via header is:</td>
<td class="settingsValue">#[proxy.sendViaHeader]#</td>

@ -49,7 +49,6 @@ import net.yacy.search.SwitchboardConstants;
import net.yacy.server.serverCore;
import net.yacy.server.serverObjects;
import net.yacy.server.serverSwitch;
import net.yacy.server.http.HTTPDemon;
public class SettingsAck_p {
@ -180,11 +179,6 @@ public class SettingsAck_p {
env.setConfig("isTransparentProxy", isTransparentProxy);
prop.put("info_isTransparentProxy", isTransparentProxy ? "on" : "off");
// setting the keep alive property
HTTPDemon.keepAliveSupport = post.containsKey("connectionKeepAliveSupport");
env.setConfig("connectionKeepAliveSupport", HTTPDemon.keepAliveSupport);
prop.put("info_connectionKeepAliveSupport", HTTPDemon.keepAliveSupport ? "on" : "off");
// setting via header property
env.setConfig("proxy.sendViaHeader", post.containsKey("proxy.sendViaHeader"));
prop.put("info_proxy.sendViaHeader", post.containsKey("proxy.sendViaHeader")? "on" : "off");

@ -10,11 +10,6 @@
<small><code>iptables -t nat -A PREROUTING -p tcp -s 192.168.0.0/16 --dport 80 -j DNAT --to 192.168.0.1:#[port]#</code></small>
</td>
</tr>
<tr valign="top">
<td><label for="conn_keep_alive">Connection Keep-Alive</label>:</td>
<td><input type="checkbox" name="connectionKeepAliveSupport" id="conn_keep_alive" #(connectionKeepAliveSupport)#::checked="checked" #(/connectionKeepAliveSupport)#/></td>
<td>With this you can specify if YaCy should support the HTTP connection keep-alive feature.</td>
</tr>
<tr valign="top">
<td><label for="via_header">Send "Via" Header</label>:</td>
<td><input type="checkbox" name="proxy.sendViaHeader" id="via_header" #(proxy.sendViaHeader)#::checked="checked" #(/proxy.sendViaHeader)#/></td>
@ -41,6 +36,10 @@
<td>HTTP Server Version:</td>
<td><b>#[httpservername]#</b></td>
</tr>
<tr>
<td>HTTP Server Port:</td>
<td><b>#[port]#</b></td>
</tr>
</table>
</fieldset>
</form><br />

@ -86,7 +86,6 @@ public final class Settings_p {
// http networking settings
prop.put("isTransparentProxy", env.getConfigBool("isTransparentProxy", false) ? "1" : "0");
prop.put("connectionKeepAliveSupport", env.getConfigBool("connectionKeepAliveSupport", false) ? "1" : "0");
prop.put("proxy.sendViaHeader", env.getConfigBool("proxy.sendViaHeader", false) ? "1" : "0");
prop.put("proxy.sendXForwardedForHeader", env.getConfigBool("proxy.sendXForwardedForHeader", true) ? "1" : "0");

@ -67,8 +67,6 @@ public final class HTTPDemon {
// static objects
private static volatile Switchboard switchboard = Switchboard.getSwitchboard();
public static boolean keepAliveSupport = false;
static final void sendRespondError(
final HashMap<String, Object> conProp,
final OutputStream respond,

Loading…
Cancel
Save