Skip to content
Browse files

removed Bonjour support

  • Loading branch information...
1 parent 337c632 commit d0445e0e930b8bca63355f0ec679b14c4ce087a2 @kraih committed May 27, 2012
Showing with 129 additions and 155 deletions.
  1. +1 −0 Changes
  2. +7 −7 README.pod
  3. +3 −19 lib/Mojo/Server/Daemon.pm
  4. +4 −4 lib/Mojo/Server/Hypnotoad.pm
  5. +3 −4 lib/Mojo/Server/Morbo.pm
  6. +0 −7 lib/Mojolicious/Command/version.pm
  7. +2 −2 t/mojo/app.t
  8. +2 −2 t/mojo/delay.t
  9. +2 −2 t/mojo/hypnotoad.t
  10. +2 −2 t/mojo/ioloop.t
  11. +2 −5 t/mojo/ioloop_ipv6.t
  12. +2 −2 t/mojo/ioloop_tls.t
  13. +2 −2 t/mojo/morbo.t
  14. +2 −2 t/mojo/reactor_ev.t
  15. +2 −2 t/mojo/reactor_poll.t
  16. +2 −2 t/mojo/user_agent.t
  17. +2 −2 t/mojo/user_agent_tls.t
  18. +2 −2 t/mojo/websocket.t
  19. +2 −2 t/mojo/websocket_proxy.t
  20. +2 −2 t/mojo/websocket_proxy_tls.t
  21. +4 −4 t/mojolicious/app.t
  22. +2 −2 t/mojolicious/caching_lite_app.t
  23. +2 −2 t/mojolicious/charset_lite_app.t
  24. +2 −2 t/mojolicious/dispatcher_lite_app.t
  25. +4 −4 t/mojolicious/embedded_app.t
  26. +4 −4 t/mojolicious/embedded_lite_app.t
  27. +4 −4 t/mojolicious/exception_lite_app.t
  28. +4 −4 t/mojolicious/external_app.t
  29. +4 −4 t/mojolicious/external_lite_app.t
  30. +2 −2 t/mojolicious/group_lite_app.t
  31. +2 −2 t/mojolicious/i18n_lite_app.t
  32. +2 −2 t/mojolicious/i18n_shortcut_lite_app.t
  33. +2 −2 t/mojolicious/json_config_lite_app.t
  34. +4 −4 t/mojolicious/json_config_mode_lite_app.t
  35. +2 −2 t/mojolicious/layouted_lite_app.t
  36. +4 −4 t/mojolicious/lite_app.t
  37. +2 −2 t/mojolicious/longpolling_lite_app.t
  38. +2 −2 t/mojolicious/multipath_lite_app.t
  39. +5 −5 t/mojolicious/ojo.t
  40. +2 −2 t/mojolicious/pod_renderer_lite_app.t
  41. +4 −4 t/mojolicious/production_app.t
  42. +2 −2 t/mojolicious/rebased_lite_app.t
  43. +2 −2 t/mojolicious/restful_lite_app.t
  44. +2 −2 t/mojolicious/tag_helper_lite_app.t
  45. +4 −4 t/mojolicious/testing_app.t
  46. +2 −2 t/mojolicious/tls_lite_app.t
  47. +2 −2 t/mojolicious/twinkle_lite_app.t
  48. +2 −2 t/mojolicious/upload_lite_app.t
  49. +2 −2 t/mojolicious/upload_stream_lite_app.t
  50. +2 −2 t/mojolicious/websocket_lite_app.t
View
1 Changes
@@ -1,6 +1,7 @@
2.97 2012-05-27
- Added workaround to make IO::Socket::SSL work with IO::Socket::IP.
+ - Removed Bonjour support.
- Improved documentation.
- Improved tests.
- Fixed bug that prevented Test::Mojo from working with normal Mojolicious
View
14 README.pod
@@ -3,9 +3,9 @@
Back in the early days of the web, many people learned Perl because of a
wonderful Perl library called L<CGI>. It was simple enough to get started
-without knowing much about the language and powerful enough to keep you
-going, learning by doing was much fun. While most of the techniques used are
-outdated now, the idea behind it is not. L<Mojolicious> is a new attempt at
+without knowing much about the language and powerful enough to keep you going,
+learning by doing was much fun. While most of the techniques used are outdated
+now, the idea behind it is not. L<Mojolicious> is a new attempt at
implementing this idea using state of the art technology.
=head2 Features
@@ -34,8 +34,8 @@ they are installed).
=item *
-Full stack HTTP 1.1 and WebSocket client/server implementation with IPv6,
-TLS, Bonjour, IDNA, Comet (long polling), chunking and multipart support.
+Full stack HTTP 1.1 and WebSocket client/server implementation with IPv6, TLS,
+IDNA, Comet (long polling), chunking and multipart support.
=item *
@@ -72,8 +72,8 @@ These three lines are a whole web application.
app->start;
-To run this example with the built-in development web server just put the
-code into a file and start it with C<morbo>.
+To run this example with the built-in development web server just put the code
+into a file and start it with C<morbo>.
$ morbo hello.pl
Server available at http://127.0.0.1:3000.
View
22 lib/Mojo/Server/Daemon.pm
@@ -6,12 +6,6 @@ use Mojo::IOLoop;
use Mojo::URL;
use POSIX;
use Scalar::Util 'weaken';
-use Sys::Hostname;
-
-# Bonjour
-use constant BONJOUR => $ENV{MOJO_NO_BONJOUR}
- ? 0
- : eval 'use Net::Rendezvous::Publish 0.04 (); 1';
use constant DEBUG => $ENV{MOJO_DAEMON_DEBUG} || 0;
@@ -192,16 +186,6 @@ sub _listen {
);
push @{$self->{listening} ||= []}, $id;
- # Bonjour
- if (BONJOUR && (my $p = Net::Rendezvous::Publish->new)) {
- my $name = $options->{address} || Sys::Hostname::hostname();
- $p->publish(
- name => "Mojolicious ($name:$options->{port})",
- port => $options->{port},
- type => '_http._tcp'
- ) if $options->{port} && !$tls;
- }
-
# Friendly message
return if $self->silent;
$self->app->log->info(qq{Listening at "$listen".});
@@ -312,12 +296,12 @@ Mojo::Server::Daemon - Non-blocking I/O HTTP 1.1 and WebSocket server
=head1 DESCRIPTION
L<Mojo::Server::Daemon> is a full featured non-blocking I/O HTTP 1.1 and
-WebSocket server with C<IPv6>, C<TLS>, C<Bonjour> and C<libev> support.
+WebSocket server with C<IPv6>, C<TLS> and C<libev> support.
Optional modules L<EV>, L<IO::Socket::IP>, L<IO::Socket::SSL> and
L<Net::Rendezvous::Publish> are supported transparently and used if installed.
-Individual features can also be disabled with the C<MOJO_NO_BONJOUR>,
-C<MOJO_NO_IPV6> and C<MOJO_NO_TLS> environment variables.
+Individual features can also be disabled with the C<MOJO_NO_IPV6> and
+C<MOJO_NO_TLS> environment variables.
See L<Mojolicious::Guides::Cookbook> for deployment recipes.
View
8 lib/Mojo/Server/Hypnotoad.pm
@@ -366,8 +366,8 @@ Mojo::Server::Hypnotoad - ALL GLORY TO THE HYPNOTOAD!
L<Mojo::Server::Hypnotoad> is a full featured UNIX optimized preforking
non-blocking I/O HTTP 1.1 and WebSocket server built around the very well
-tested and reliable L<Mojo::Server::Daemon> with C<IPv6>, C<TLS>, C<Bonjour>,
-C<libev> and hot deployment support that just works.
+tested and reliable L<Mojo::Server::Daemon> with C<IPv6>, C<TLS>, C<libev> and
+hot deployment support that just works.
To start applications with it you can use the L<hypnotoad> script.
@@ -384,8 +384,8 @@ C<production> mode.
Optional modules L<EV>, L<IO::Socket::IP>, L<IO::Socket::SSL> and
L<Net::Rendezvous::Publish> are supported transparently and used if installed.
-Individual features can also be disabled with the C<MOJO_NO_BONJOUR>,
-C<MOJO_NO_IPV6> and C<MOJO_NO_TLS> environment variables.
+Individual features can also be disabled with the C<MOJO_NO_IPV6> and
+C<MOJO_NO_TLS> environment variables.
See L<Mojolicious::Guides::Cookbook> for deployment recipes.
View
7 lib/Mojo/Server/Morbo.pm
@@ -123,8 +123,7 @@ Mojo::Server::Morbo - DOOOOOOOOOOOOOOOOOOM!
L<Mojo::Server::Morbo> is a full featured self-restart capable non-blocking
I/O HTTP 1.1 and WebSocket server built around the very well tested and
-reliable L<Mojo::Server::Daemon> with C<IPv6>, C<TLS>, C<Bonjour> and C<libev>
-support.
+reliable L<Mojo::Server::Daemon> with C<IPv6>, C<TLS> and C<libev> support.
To start applications with it you can use the L<morbo> script.
@@ -133,8 +132,8 @@ To start applications with it you can use the L<morbo> script.
Optional modules L<EV>, L<IO::Socket::IP>, L<IO::Socket::SSL> and
L<Net::Rendezvous::Publish> are supported transparently and used if installed.
-Individual features can also be disabled with the C<MOJO_NO_BONJOUR>,
-C<MOJO_NO_IPV6> and C<MOJO_NO_TLS> environment variables.
+Individual features can also be disabled with the C<MOJO_NO_IPV6> and
+C<MOJO_NO_TLS> environment variables.
See L<Mojolicious::Guides::Cookbook> for deployment recipes.
View
7 lib/Mojolicious/Command/version.pm
@@ -24,12 +24,6 @@ sub run {
my $tls
= Mojo::IOLoop::Server::TLS ? $IO::Socket::SSL::VERSION : 'not installed';
- # Bonjour
- my $bonjour
- = Mojo::Server::Daemon::BONJOUR
- ? $Net::Rendezvous::Publish::VERSION
- : 'not installed';
-
print <<"EOF";
CORE
Perl ($^V, $^O)
@@ -39,7 +33,6 @@ OPTIONAL
EV ($ev)
IO::Socket::IP ($ipv6)
IO::Socket::SSL ($tls)
- Net::Rendezvous::Publish ($bonjour)
EOF
View
4 t/mojo/app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/delay.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/hypnotoad.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/ioloop.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
7 t/mojo/ioloop_ipv6.t
@@ -1,10 +1,7 @@
use Mojo::Base -strict;
-# Disable Bonjour and libev
-BEGIN {
- $ENV{MOJO_NO_BONJOUR} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
-}
+# Disable libev
+BEGIN { $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll' }
use Test::More;
use Mojo::IOLoop::Server;
View
4 t/mojo/ioloop_tls.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/morbo.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/reactor_ev.t
@@ -1,7 +1,7 @@
use Mojo::Base -strict;
-# Disable Bonjour and IPv6
-BEGIN { $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1 }
+# Disable IPv6
+BEGIN { $ENV{MOJO_NO_IPV6} = 1 }
use Test::More;
plan skip_all => 'set TEST_EV to enable this test (developer only!)'
View
4 t/mojo/reactor_poll.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/user_agent.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6, TLS and libev
+# Disable IPv6, TLS and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = $ENV{MOJO_NO_TLS} = 1;
+ $ENV{MOJO_NO_IPV6} = $ENV{MOJO_NO_TLS} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/user_agent_tls.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/websocket.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/websocket_proxy.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojo/websocket_proxy_tls.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
8 t/mojolicious/app.t
@@ -1,10 +1,10 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'development';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'development';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 325;
View
4 t/mojolicious/caching_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/charset_lite_app.t
@@ -2,9 +2,9 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/dispatcher_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
8 t/mojolicious/embedded_app.t
@@ -2,11 +2,11 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'testing';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'testing';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 39;
View
8 t/mojolicious/embedded_lite_app.t
@@ -2,11 +2,11 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'testing';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'testing';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 139;
View
8 t/mojolicious/exception_lite_app.t
@@ -2,11 +2,11 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'development';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'development';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 83;
View
8 t/mojolicious/external_app.t
@@ -2,11 +2,11 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'testing';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'testing';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
# "Of all the parasites I've had over the years,
View
8 t/mojolicious/external_lite_app.t
@@ -2,11 +2,11 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'testing';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'testing';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
# "Who are you, and why should I care?"
View
4 t/mojolicious/group_lite_app.t
@@ -2,9 +2,9 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/i18n_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/i18n_shortcut_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/json_config_lite_app.t
@@ -2,9 +2,9 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
8 t/mojolicious/json_config_mode_lite_app.t
@@ -2,11 +2,11 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'testing';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'testing';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
# "Who are you, and why should I care?"
View
4 t/mojolicious/layouted_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
8 t/mojolicious/lite_app.t
@@ -2,11 +2,11 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'development';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'development';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 685;
View
4 t/mojolicious/longpolling_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/multipath_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
10 t/mojolicious/ojo.t
@@ -2,12 +2,12 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6, libev and proxy detection
BEGIN {
- $ENV{MOJO_MODE} = 'development';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_PROXY} = 0;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'development';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_PROXY} = 0;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 11;
View
4 t/mojolicious/pod_renderer_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
8 t/mojolicious/production_app.t
@@ -1,10 +1,10 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'production';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'production';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 80;
View
4 t/mojolicious/rebased_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/restful_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/tag_helper_lite_app.t
@@ -2,9 +2,9 @@ use Mojo::Base -strict;
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
8 t/mojolicious/testing_app.t
@@ -1,10 +1,10 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_MODE} = 'testing';
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
- $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
+ $ENV{MOJO_MODE} = 'testing';
+ $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
use Test::More tests => 25;
View
4 t/mojolicious/tls_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/twinkle_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/upload_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/upload_stream_lite_app.t
@@ -1,8 +1,8 @@
use Mojo::Base -strict;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
View
4 t/mojolicious/websocket_lite_app.t
@@ -4,9 +4,9 @@ use Mojo::Base -strict;
# Well, that's love for you."
use utf8;
-# Disable Bonjour, IPv6 and libev
+# Disable IPv6 and libev
BEGIN {
- $ENV{MOJO_NO_BONJOUR} = $ENV{MOJO_NO_IPV6} = 1;
+ $ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}

0 comments on commit d0445e0

Please sign in to comment.
Something went wrong with that request. Please try again.