aboutsummaryrefslogtreecommitdiff
path: root/lib/MasterServer
diff options
context:
space:
mode:
authorDarkelarious <darkelarious@333networks.com>2015-11-10 00:37:40 +0100
committerDarkelarious <darkelarious@333networks.com>2015-11-10 00:37:40 +0100
commit1de3da4b8027508a91144639455c934fd6ccb9b7 (patch)
treeae9ef31585022ced426cff089eb41b946796451c /lib/MasterServer
parentdc409b9cb6e92fd9ff9ef18ab2ca825bd247b419 (diff)
downloadMasterServer-Perl-1de3da4b8027508a91144639455c934fd6ccb9b7.tar.gz
MasterServer-Perl-1de3da4b8027508a91144639455c934fd6ccb9b7.zip
Prevent slow games from timing out prematurely
Diffstat (limited to 'lib/MasterServer')
-rwxr-xr-xlib/MasterServer/TCP/BrowserHost.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MasterServer/TCP/BrowserHost.pm b/lib/MasterServer/TCP/BrowserHost.pm
index b30b27e..3eb22eb 100755
--- a/lib/MasterServer/TCP/BrowserHost.pm
+++ b/lib/MasterServer/TCP/BrowserHost.pm
@@ -36,7 +36,7 @@ sub browser_host {
my $h; $h = AnyEvent::Handle->new(
fh => $fh,
poll => 'r',
- timeout => 1,
+ timeout => 5,
on_eof => sub {$self->clean_tcp_handle(@_)},
on_error => sub {$self->clean_tcp_handle(@_)},
on_read => sub {$self->read_tcp_handle($h, $a, $p, $secure, @_)},