Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

delete the socket ASAP

  • Loading branch information...
commit ba6263c25ff49ac2cf2c111b016ce366935ac13b 1 parent 27af2d8
Tatsuhiko Miyagawa authored February 04, 2010

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  lib/Plack/Handler/AnyEvent/HTTPD.pm
3  lib/Plack/Handler/AnyEvent/HTTPD.pm
@@ -57,7 +57,7 @@ sub register_service {
57 57
                     open my $input, "<", \(defined $req->content ? $req->content : '');
58 58
                     $input;
59 59
                 },
60  
-                'psgix.io'          => $_sockets{join(":", $req->client_host, $req->client_port)},
  60
+                'psgix.io'          => delete $_sockets{join(":", $req->client_host, $req->client_port)},
61 61
             };
62 62
 
63 63
             my $hdr = $req->headers;
@@ -87,7 +87,6 @@ sub register_service {
87 87
                     }
88 88
 
89 89
                     $req->respond([ @res, $content ]);
90  
-                    delete $_sockets{join(":", $req->client_host, $req->client_port)};
91 90
 
92 91
                     return;
93 92
                 } else {

0 notes on commit ba6263c

Please sign in to comment.
Something went wrong with that request. Please try again.