--- trunk/lib/Sack/Server.pm 2009/11/22 15:31:38 213 +++ trunk/lib/Sack/Server.pm 2009/11/22 21:54:25 219 @@ -89,7 +89,6 @@ $session->{peerport}->{ $new->peerport } = $new; warn "[socket] connect\n"; Storable::store_fd( { ping => 1 }, $new ); - info 0 => 'ping', $new->peerport; } elsif ( $sock == $www ) { my $client = $www->accept; Sack::Server::HTTP::request( $client, sub { @@ -127,12 +126,28 @@ , qq|| ; - print $send '

Info

' . dump( $info ) . '
'; + print $send qq|

Nodes

+ + |, join("\n", map { + my $class = join(' ', map { $_->[0] } @{ $info->{node}->{$_} }); + qq|$_|; + } sort keys %{ $info->{node} } ); print $send qq|

Data

| ; + + print $send '
', dump($info), '
'; + } ); } else { my $data = eval { Storable::fd_retrieve( $sock ) };