Permalink
Browse files

delete the socket ASAP

  • Loading branch information...
1 parent 27af2d8 commit ba6263c25ff49ac2cf2c111b016ce366935ac13b @miyagawa committed Feb 4, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Plack/Handler/AnyEvent/HTTPD.pm
@@ -57,7 +57,7 @@ sub register_service {
open my $input, "<", \(defined $req->content ? $req->content : '');
$input;
},
- 'psgix.io' => $_sockets{join(":", $req->client_host, $req->client_port)},
+ 'psgix.io' => delete $_sockets{join(":", $req->client_host, $req->client_port)},
};
my $hdr = $req->headers;
@@ -87,7 +87,6 @@ sub register_service {
}
$req->respond([ @res, $content ]);
- delete $_sockets{join(":", $req->client_host, $req->client_port)};
return;
} else {

0 comments on commit ba6263c

Please sign in to comment.