ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/tcp.ext
(Generate patch)

Comparing deliantra/server/ext/tcp.ext (file contents):
Revision 1.13 by root, Sun Nov 29 10:52:14 2009 UTC vs.
Revision 1.14 by root, Sun Jan 31 03:46:20 2010 UTC

9 9
10our $BIND = $cf::CFG{bind_addresses} || [[undef, 13327]]; 10our $BIND = $cf::CFG{bind_addresses} || [[undef, 13327]];
11 11
12for (@$BIND) { 12for (@$BIND) {
13 my ($host, $port) = @$_; 13 my ($host, $port) = @$_;
14 warn "listening on $host:$port\n"; 14 warn "listening on ", (format_hostport $host, $port), "\n";
15 15
16 tcp_server $host, $port, sub { 16 tcp_server $host, $port, sub {
17 my ($fh, $host, $port) = @_ 17 my ($fh, $host, $port) = @_
18 or return; 18 or return;
19 19
20 warn "new connection from [$host]:$port\n"; 20 warn "new connection from ", (format_hostport $host, $port), "\n";
21 21
22 # HACK to avoid blocking on common files on log-in.
23 # remove once async
24 cf::async {#d#
25 warn "HACK ext/tcp.ext: $cf::LOCALDIR/crossfiremail\n" and Coro::AIO::aio_load "$cf::LOCALDIR/crossfiremail", my $dummy;#d#
26 cf::client::create fileno $fh, $host; 22 cf::client::create fileno $fh, $host;
27 };#d#d
28 }; 23 };
29} 24}
30 25

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines