Browse Source

[mod_fastcgi,mod_scgi] fastcgi.balance,scgi.balance (fixes #2882)

x-ref:
  "fastcgi.balance not working"
  https://redmine.lighttpd.net/issues/2882
personal/stbuehler/fix-fdevent
Glenn Strauss 4 years ago
parent
commit
3efaff973f
  1. 3
      src/mod_fastcgi.c
  2. 3
      src/mod_scgi.c

3
src/mod_fastcgi.c

@ -463,6 +463,7 @@ static int fcgi_patch_connection(server *srv, connection *con, plugin_data *p) {
PATCH(exts_auth);
PATCH(exts_resp);
PATCH(debug);
PATCH(balance);
PATCH(ext_mapping);
/* skip the first, the global context */
@ -483,6 +484,8 @@ static int fcgi_patch_connection(server *srv, connection *con, plugin_data *p) {
PATCH(exts_resp);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("fastcgi.debug"))) {
PATCH(debug);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("fastcgi.balance"))) {
PATCH(balance);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("fastcgi.map-extensions"))) {
PATCH(ext_mapping);
}

3
src/mod_scgi.c

@ -217,6 +217,7 @@ static int scgi_patch_connection(server *srv, connection *con, plugin_data *p) {
PATCH(exts_resp);
PATCH(proto);
PATCH(debug);
PATCH(balance);
PATCH(ext_mapping);
/* skip the first, the global context */
@ -237,6 +238,8 @@ static int scgi_patch_connection(server *srv, connection *con, plugin_data *p) {
PATCH(exts_resp);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("scgi.protocol"))) {
PATCH(proto);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("scgi.balance"))) {
PATCH(balance);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("scgi.debug"))) {
PATCH(debug);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("scgi.map-extensions"))) {

Loading…
Cancel
Save