From cd1144dc24dd119ddabd88682e581d183bc90091 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 14 Apr 2005 22:52:08 +0000 Subject: make the ftp server support reply/servercmd, and make SLOWDOWN work, and update the docs accordingly --- tests/FILEFORMAT | 18 +++++++++++------- tests/ftpserver.pl | 7 ++++++- tests/runtests.pl | 4 ++-- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT index 30f539b8f..1225a367c 100644 --- a/tests/FILEFORMAT +++ b/tests/FILEFORMAT @@ -57,18 +57,22 @@ number to return on a ftp SIZE command (set to -1 to make this command fail) what to send back if the client sends a (FTP) MDTM command, set to -1 to have it return that the file doesn't exist - -special purpose server-command to control its behavior *before* the -reply is sent: - -auth_required - server fails if no auth is provided - special purpose server-command to control its behavior *after* the reply is sent - equivalent to but for HTTP, one specified command is supported: +Special-commands for the server. +For FTP, these are supported: +REPLY +COUNT +DELAY +RETRWEIRDO +RETRNOSIZE +NOSAVE +SLOWDOWN + +For HTTP, one specified command is supported: "auth_required" - if this is set and a POST/PUT is made without auth, the server will NOT wait for the full request body to get sent diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 7358ca297..e51bfeee6 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -118,7 +118,7 @@ sub sendcontrol { for(@a) { print $_; - select(undef, undef, undef, 0.1); + select(undef, undef, undef, 0.02); } } @@ -544,6 +544,7 @@ sub customize { undef %customreply; $nosave = 0; # default is to save as normal + $controldelay = 0; # default is no delaying the responses open(CUSTOM, "