Hi all
There's currently a problem with the background-mode of SIPp. When
starting SIPp in background-mode it leaves the terminal somewhat garbled.
This problem was introduced between sipp.2007-01-03.tar.gz and
sipp.2007-01-08.tar.gz
The offending change is shown here:
http://sipp.svn.sourceforge.net/viewvc/sipp/sipp/trunk/sipp.cpp?r1=134&r2=135
(or check the attached diff for the latest version sipp.2007-01-16.tar.gz)
The svn-log messages says:
Fix: trace_err did not work in background mode
I assume the problem is the call of the screen_init()-method, but I'm
not familiar enough with the SIPp codebase to propose a better fix.
Maybe reverse the order of the if's? Only call screen_init() when NOT
in background-mode?
Kind regards.
Bruno
--
Bruno Van Den Bossche
[EMAIL PROTECTED]
http://www.ibcn.intec.UGent.be
Binary files sipp.2007-01-16/sipp and sipp.2007-01-16-mod/sipp differ
diff -bruN sipp.2007-01-16/sipp.cpp sipp.2007-01-16-mod/sipp.cpp
--- sipp.2007-01-16/sipp.cpp 2007-01-16 10:50:01.000000000 +0100
+++ sipp.2007-01-16-mod/sipp.cpp 2007-01-18 16:40:15.000000000 +0100
@@ -3757,6 +3757,7 @@
scenario_file = remove_pattern (scenario_file, (char*)".xml");
}
+ if( backgroundMode == false ) {
if (print_all_responses) {
char L_file_name [MAX_PATH];
sprintf (L_file_name, "%s_%d_errors.log", scenario_file, getpid());
@@ -3764,6 +3765,7 @@
} else {
screen_init(NULL, print_last_stats);
}
+ }
#ifdef _USE_OPENSSL
if ((transport == T_TLS) && (FI_init_ssl_context() != SSL_INIT_NORMAL))
Binary files sipp.2007-01-16/sipp.o and sipp.2007-01-16-mod/sipp.o differ
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users