Skip to content

Commit

Permalink
make sure timeout only applies for TLS upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 16, 2014
1 parent b853d16 commit 2c9ff71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/mojo/websocket_proxy_tls.t
Expand Up @@ -298,7 +298,9 @@ $tx = $ua->get("https://localhost:$close");
is $err->{message}, 'Proxy connection failed', 'right error';

# Idle connection through proxy
$tx = $ua->connect_timeout(0.25)->get("https://localhost:$idle");
$ua->on(start =>
sub { shift->connect_timeout(0.25) if pop->req->method eq 'CONNECT' });
$tx = $ua->get("https://localhost:$idle");
is $err->{message}, 'Proxy connection failed', 'right error';
$ua->connect_timeout(10);

Expand Down

0 comments on commit 2c9ff71

Please sign in to comment.