/[pxelator]/lib/PXElator/httpd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/httpd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 207 by dpavlin, Wed Aug 12 22:56:45 2009 UTC revision 208 by dpavlin, Wed Aug 12 23:59:01 2009 UTC
# Line 63  sub static { Line 63  sub static {
63                  # parent                  # parent
64                  close($client);                  close($client);
65                  $static_pids->{$pid} = $path;                  $static_pids->{$pid} = $path;
                 CouchDB::audit('static', 'parent', { pid => $pid, path => $path });  
66                  return 1;                  return 1;
67          }          }
68    
# Line 82  sub static { Line 81  sub static {
81          my $buff;          my $buff;
82          my $pos = 0;          my $pos = 0;
83    
84          CouchDB::audit( 'static', 'child', { pid => $$, path => $path, type => $type, size => $size, block => $block });          CouchDB::audit( 'static', { pid => $$, path => $path, type => $type, size => $size, block => $block, peerhost => $client->peerhost });
85    
86          progress_bar::start;          progress_bar::start;
87    
# Line 97  sub static { Line 96  sub static {
96    
97          print STDERR "\n";          print STDERR "\n";
98    
         CouchDB::audit( 'static', 'child', 'exit', { pid => $$ } );  
   
99          exit(0);          exit(0);
100  }  }
101    
# Line 117  sub get_request { Line 114  sub get_request {
114    
115          server->refresh;          server->refresh;
116    
117          CouchDB::audit( 'request', { path => $path, param => $param } );          CouchDB::audit( 'request', { path => $path, param => $param, peerhost => $client->peerhost } );
118    
119          if ( my $found = static( $client,$path ) ) {          if ( my $found = static( $client,$path ) ) {
120                  warn "static $found" if $debug;                  warn "static $found" if $debug;

Legend:
Removed from v.207  
changed lines
  Added in v.208

  ViewVC Help
Powered by ViewVC 1.1.26