Index: trunk/phase3/CREDITS |
— | — | @@ -106,6 +106,7 @@ |
107 | 107 | * René Kijewski |
108 | 108 | * Robert Treat |
109 | 109 | * RockMFR |
| 110 | +* Roi Avinoam |
110 | 111 | * Sam Reed |
111 | 112 | * ST47 |
112 | 113 | * Scott Colcord |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1769,6 +1769,11 @@ |
1770 | 1770 | */ |
1771 | 1771 | $wgSquidServersNoPurge = array(); |
1772 | 1772 | |
| 1773 | +/** |
| 1774 | + * Default character limit for squid purge responses |
| 1775 | + */ |
| 1776 | +$wgSquidResponseLimit = 250; |
| 1777 | + |
1773 | 1778 | /** Maximum number of titles to purge in any one client operation */ |
1774 | 1779 | $wgMaxSquidPurgeTitles = 400; |
1775 | 1780 | |
Index: trunk/phase3/includes/SquidUpdate.php |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | XXX report broken Squids per mail or log */ |
83 | 83 | |
84 | 84 | static function purge( $urlArr ) { |
85 | | - global $wgSquidServers, $wgHTCPMulticastAddress, $wgHTCPPort; |
| 85 | + global $wgSquidServers, $wgHTCPMulticastAddress, $wgHTCPPort, $wgSquidResponseLimit; |
86 | 86 | |
87 | 87 | /*if ( (@$wgSquidServers[0]) == 'echo' ) { |
88 | 88 | echo implode("<br />\n", $urlArr) . "<br />\n"; |
— | — | @@ -140,7 +140,7 @@ |
141 | 141 | #$this->debug("\n"); |
142 | 142 | /* Squid only returns http headers with 200 or 404 status, |
143 | 143 | if there's more returned something's wrong */ |
144 | | - if (strlen($res) > 250) { |
| 144 | + if (strlen($res) > $wgSquidResponseLimit) { |
145 | 145 | fclose($socket); |
146 | 146 | $failed = true; |
147 | 147 | $totalsockets -= $sockspersq; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -637,6 +637,7 @@ |
638 | 638 | * (bug 19391) Fix caching for Recent ChangesFeed. |
639 | 639 | * (bug 21455) Fixed "Watch this page" checkbox appearing on some special pages |
640 | 640 | even to non-logged in users |
| 641 | +* (bug 21551) Make Squid reponse limit configurable |
641 | 642 | |
642 | 643 | == API changes in 1.16 == |
643 | 644 | |