From 813da9e8b1931da8c9c94f31f2cb2ba0e47e85ab Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Tue, 17 Jun 2003 02:09:25 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=1511 --- test/testproxy | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/testproxy b/test/testproxy index c436f639b2..8d6f48cec3 100755 --- a/test/testproxy +++ b/test/testproxy @@ -43,14 +43,20 @@ CODE is evaluated every 128 bytes transferred from server to client. Some variables you can access/modify: \$target, \$client : perl IO::Handle::INET objects \$nconnections : number of connections so far + \$url : url of request (if applicable) + \$time : seconds since server started \$chars, \$nchars : characters & length about to send to client. \$bytes_transferred : characters already sent to client \$done, \$success : finished transfer; successful transfer For more, view the code. - You can call functions like exit, sleep, \$target\->close, \$target\->print. - You should return 1 to indicate success (otherwise testproxy will warn). + Functions: + kill_server, if_done_kill, if_done_ping + + You can also call any functions like exit, sleep, \$target\->close, + \$target\->print. You should return 1 to indicate success (otherwise + testproxy will warn). Examples: # fail connections for first 3 connections