aboutsummaryrefslogtreecommitdiff
path: root/tests/ftpserver.pl
AgeCommit message (Collapse)Author
2007-09-17Allow setting the IP address on which to listen for connections.Dan Fandrich
2007-09-17Make the ftp server connect to the address given by curl in the PORT/EPRTDan Fandrich
instead of hard-coding it to 127.0.0.1
2007-08-23Allow ftp server alternate replies to contain backslash-escaped controlDan Fandrich
characters.
2007-08-23Need even more time to wait for an accept.Dan Fandrich
2007-08-20Increase timeout for accept for improved reliability on loaded servers.Dan Fandrich
2007-07-23Log the "<CMD> wasn't handled" error normally since it is now expectedDan Fandrich
to occur in a couple of tests.
2007-07-21To allow more flexibility in FTP test cases, I've removed the enforced statesDaniel Stenberg
from the test server code as they served no real purpose. The test server is here to serve for the test cases, not to attempt to function as a real server!
2007-04-24Clear out FTP server options before each new client.Dan Fandrich
Wait for child processes to die to avoid creating zombies.
2007-04-20Changed an error message slightly so it can be caught easier by theDan Fandrich
autobuild logs scanner.
2007-03-01Reduce the posibility of leaving the sockfilter hanging around whenYang Tse
tearing down the test ftp server due to a read error condition.
2006-11-20Revert ftpserver.pl back to revision 1.74 Adding change done in 1.76Yang Tse
This is done to back out changes done in revisions 1.77 and 1.75
2006-11-20Add some message loggingYang Tse
2006-11-19log the sleep, like when done in test 190Daniel Stenberg
2006-11-17The hash of running servers is now a hash of hashes which for each runningYang Tse
server holds not only its two main pids, but also the pidfile of the test server and the 'slavepidfiles' for ftp* servers. This allows a better control when stopping servers. Now from runtests.pl when test servers are stopped they are signalled in sequence TERM, INT and KILL allowing time in between for them to die. This will give us a chance of gracefully stopping test servers, which we didn't have when we were killing them in first instance.
2006-10-08Fix a "sockfilt" leak. When a new 'data' connection sockfilt server is started,Daniel Stenberg
make sure that a previously used one is killed first (since they re-use the same .pid file etc)
2006-09-24allow user in passwd state for test 280 to work (--ftp-alternative-to-user)Daniel Stenberg
2006-08-23Use /usr/bin/env to invoke perl like the other test scripts.Dan Fandrich
2005-09-04Added FTP_SKIP_PASV_IP and --ftp-skip-pasv-ipDaniel Stenberg
2005-05-25no more time/re-start of sockfilt, no more redirect of stdin/stdout whenDaniel Stenberg
talking to sockfilt
2005-05-24don't restart sockfilt after only 5 seconds of inactivityDaniel Stenberg
2005-05-04removed lots of (now) redundant loggingDaniel Stenberg
2005-05-04modify a value we are allowed toDaniel Stenberg
2005-05-04improved logging (all FTP protocol data, both ways) to possibly help us realizeDaniel Stenberg
why sometimes the control connection dies after a RETR has been sent
2005-05-03add more info to the log to ease debuggingDaniel Stenberg
2005-05-02another <case> converted to sysreadDaniel Stenberg
2005-05-02read from the open2 filehandle with sysread, not <handle>Daniel Stenberg
2005-05-02Fixed the FTP server read stuff when waiting for a connect after a PASV/EPSV.Daniel Stenberg
Made the ftp server use the passed in pidfile name, and made runtests.pl pass it in properly.
2005-05-02fix the server for the slow response caseDaniel Stenberg
2005-05-02Make sure there's no pidfile if we cannot start the initial sockfilt tool -Daniel Stenberg
this happens for some ipv6-enabled hosts on which sockfilt cannot listen on ipv6.
2005-04-28basic signal handler for sigint and sigkillDaniel Stenberg
2005-04-28kill slave processes when they failDaniel Stenberg
2005-04-18allow some more timeDaniel Stenberg
2005-04-18Modified the FTP server to use the new 'sockfilt' program to do all the socketDaniel Stenberg
level stuff. The FTP server communicates with sockfilt using perl's open2(). This enables easier IPv6 support and hopefully FTP-SSL support in the future. Added four test cases for FTP-ipv6.
2005-04-14make the ftp server support reply/servercmd, and make SLOWDOWN work, andDaniel Stenberg
update the docs accordingly
2005-03-31copyright this yearDaniel Stenberg
2005-03-29Made the server send data to the control/data connections using two dedicatedDaniel Stenberg
functions. This enabled me to add a function that automatically delays between each byte, to proper test curl's ability to read FTP server responses sent in many (small) chunks. See also upcoming libcurl fixes...
2005-01-26Make the server ignore the given PORT address, to make it possible to testDaniel Stenberg
curl's -P option easier.
2005-01-25A minor "syntax error" in numerous test files correctedDaniel Stenberg
2005-01-20Support file names passed to RETR that don't start with a number. In thatDaniel Stenberg
case, all non-numeric prefixing letters are cut off to figure out the test number.
2005-01-20add support for NOOPDaniel Stenberg
2005-01-17support the new --id command line option, that allows a second (or third orDaniel Stenberg
whatever) instance to run without overwriting the previous' logfiles
2004-10-27log client disconnectsDaniel Stenberg
2004-08-23Provide support for "transferring" zero bytes FTP files and comparing thatDaniel Stenberg
the output file actually is zero bytes after the transfer.
2004-06-17new daring features, not used by any current testDaniel Stenberg
2004-06-15skip the pid from the loggingDaniel Stenberg
2004-05-17When waiting for the second connect, we now use alarm to timeout the waiting.Daniel Stenberg
This is necessary in case the client never connects or somehow fails to do it timely. The timeout used now is only 2 seconds, which might cause problems on really slow hosts but longer times are painful when doing torture testing on FTP test cases. I'm not sure how this 'alarm' functionality works on Windows or other systems that don't actually have the alarm() function.
2004-04-19changed the logging to work when the logfile is removed during testingDaniel Stenberg
2004-04-15change the log format to look similar to swsDaniel Stenberg
added various logging info
2004-03-01Report the correct size when 'verifiedserver' is requested.Daniel Stenberg
2004-02-26added the ever-present source headerDaniel Stenberg