Browse Source

Fixed fix for round-robin in mod_proxy (forgot to increment the index) (#1715)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2335 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.21
Stefan Bühler 13 years ago
parent
commit
4b197d05ec
  1. 1
      NEWS
  2. 3
      src/mod_proxy.c

1
NEWS

@ -17,6 +17,7 @@ NEWS
* Fix fastcgi authorization in subdirectories with check-local=disabled; don't split pathinfo for authorizer. (#963)
* Add possibility to disable methods in mod_compress (#1773)
* Fix duplicate connection keep-alive/transfer-encoding headers (#960)
* Fixed fix for round-robin in mod_proxy (forgot to increment the index) (#1715)
- 1.4.20 - 2008-09-30

3
src/mod_proxy.c

@ -1198,7 +1198,8 @@ static handler_t mod_proxy_check_extension(server *srv, connection *con, void *p
host = (data_proxy *)extension->value->data[0];
/* Use last_used_ndx from first host in list */
k = ndx = host->last_used_ndx;
k = host->last_used_ndx;
ndx = k + 1; /* use next host after the last one */
if (ndx < 0) ndx = 0;
/* Search first active host after last_used_ndx */

Loading…
Cancel
Save