sequentially number requests and responses to see real flow in dump dir
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 26 Oct 2007 15:16:10 +0000 (15:16 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 26 Oct 2007 15:16:10 +0000 (15:16 +0000)
git-svn-id: https://perl-cwmp.googlecode.com/svn/trunk@117 836a5e1a-633d-0410-964b-294494ad4392

lib/CWMP/Session.pm
lib/Module/Install/PRIVATE.pm

index 263794b..aee1418 100644 (file)
@@ -102,7 +102,7 @@ sub process_request {
        warn "<<<< ", $sock->peerhost, " [" . localtime() . "] ", $r->method, " ", $r->uri, " $size bytes\n";
 
        if ( $self->debug > 2 ) {
-               my $file = sprintf("dump/%04d.request", $dump_nr);
+               my $file = sprintf("dump/%04d.request", $dump_nr++);
                write_file( $file, $r->as_string );
                warn "### request dump: $file\n";
        }
index 544f137..4dd74c8 100644 (file)
@@ -26,6 +26,7 @@ sub my_targets {
 # --- $self section:
 
 dump: all
+       rm dump/* || true
        ./bin/acs.pl -d -d -d 2>&1 | tee log
 
 END_MAKEFILE