Skip to content

Commit

Permalink
update Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 3, 2018
1 parent 450ba26 commit 91e8506
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@
7.62 2018-02-01
- Added -u option to get command. (jberger)
- Added dont_use_nlink option to list_tree method in Mojo::File.
- Added reverse proxy section to Mojolicious::Guides::Cookbook. (polettix)
- Fixed a promise resolution bug in Mojo::Promise.

7.61 2018-01-08
Expand Down
4 changes: 1 addition & 3 deletions lib/Mojo/Promise.pm
Expand Up @@ -15,8 +15,7 @@ sub all {
and deprecated 'Use of Mojo::Promise::all as instance method is DEPRECATED'
if ref $class;

my $all = $class->new;

my $all = $class->new;
my $results = [];
my $remaining = scalar @promises;
for my $i (0 .. $#promises) {
Expand Down Expand Up @@ -129,7 +128,6 @@ sub _then {
my @res;
return $new->reject($@) unless eval { @res = $cb->(@result); 1 };
return $new->resolve(@res);

}

1;
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious.pm
Expand Up @@ -945,6 +945,8 @@ Eugen Konkov
Eugene Toropov
Flavio Poletti
Gisle Aas
Graham Barr
Expand Down
21 changes: 10 additions & 11 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -75,17 +75,16 @@ limiting the number of concurrent open sockets towards the Mojolicious
application (or even using Unix sockets), balancing load across multiple
instances, or supporting several applications through the same IP/port.

. ...........................................
: :
: +---------------+ :
+--------+ : +-----------+ +---------------+| :
| |-------->| | | || :
| client | : | reverse |----->| Mojolicious || :
| |<--------| proxy | | application || :
+--------+ : | |<-----| || :
: +-----------+ +---------------+ :
: :
.. system boundary (e.g. same host) .......
..........................................
: :
+--------+ : +-----------+ +---------------+ :
| |-------->| | | | :
| client | : | reverse |----->| Mojolicious | :
| |<--------| proxy | | application | :
+--------+ : | |<-----| | :
: +-----------+ +---------------+ :
: :
.. system boundary (e.g. same host) ......

This setup introduces some problems, though: the application will receive
requests from the reverse proxy instead of the original client; the
Expand Down

0 comments on commit 91e8506

Please sign in to comment.