Dancer1 dev release 1.3300 released - new stable release expected soon
Hi all, I've just pushed a new dev release of Dancer 1 to CPAN, version 1.3300. It contains an assortment of bug fixes and minor improvements - changelog below for convenience. If you use Dancer1, please consider testing your code using this version, and do let me know if it breaks anything for you. Assuming nobody screams and the CPAN Testers results look good, I plan to push out a new stable release later this week. [BUG FIXES] - More temp directory handling fixes (Issue #1147) - Avoid request body truncation in hand-assembled requests in tests (PR 1148, skington) - Avoid tests failing when "localhost" doesn't resolve (PR 1142, gbarco) - Avoid test failures due to race condition in selecting a port to listen on by using 127.0.0.10 instead (more of a hacky workaround than a fix, but should help (bigpresh) - Fix YAML session handler under taint mode (chrisjrob) - Make request->body work again for URL-encoded POST requests - Issue 1140 reported by miyagawa (bigpresh) - Validate session IDs read from cookies before passing to session engine, to protect against any engine that might feed that value straight to a file path for security - Issue 1118 (bigpresh) [DOCUMENTATION] - Better doc for forward_for_address (PR 1146, Relequestual) [ENHANCEMENTS] - Let Dancer::Test::dancer_response() handle supplying multiple params with the same name - Issue 1116 (bigpresh) Cheers, Dave P (BIGPRESH)
On Feb 15, 2016, at 2:37 PM, David Precious <davidp@preshweb.co.uk> wrote:
- Avoid test failures due to race condition in selecting a port to listen on by using 127.0.0.10 instead (more of a hacky workaround than a fix, but should help (bigpresh)
You’re aware that the localhost IP block is /8, right? You could do: my $ip = int(rand(2e24)) & 0x7F000000; to reduce the chance of collision to roughly 1 in 8 million, if I’m doing my probabilities correct. (2e24 / 2 for a 50/50 hit chance?)
On Mon, 15 Feb 2016 17:01:37 -0700 Warren Young <wyml@etr-usa.com> wrote:
On Feb 15, 2016, at 2:37 PM, David Precious <davidp@preshweb.co.uk> wrote:
- Avoid test failures due to race condition in selecting a port to listen on by using 127.0.0.10 instead (more of a hacky workaround than a fix, but should help (bigpresh)
You’re aware that the localhost IP block is /8, right? You could do:
my $ip = int(rand(2e24)) & 0x7F000000;
to reduce the chance of collision to roughly 1 in 8 million, if I’m doing my probabilities correct. (2e24 / 2 for a 50/50 hit chance?)
True enough. At least this way it's repeatable though, unlike if it's random. I think it should be sufficient.
participants (2)
-
David Precious -
Warren Young