aboutsummaryrefslogtreecommitdiff
path: root/tests/server/sws.c
AgeCommit message (Collapse)Author
2012-01-03test proxy supports CONNECTDaniel Stenberg
There's a new 'http-proxy' server for tests that runs on a separate port and lets clients do HTTP CONNECT to other ports on the same host to allow us to test HTTP "tunneling" properly. Test cases now have a <proxy> section in <verify> to check that the proxy protocol part matches correctly. Test case 80, 83, 95, 275, 503 and 1078 have been converted. Test 1316 was added.
2011-10-14sws.c: HTTP and GOPHER test server-side connection closing adjustmentYang Tse
When, for a given test, server is instructed to close connection after server reply we now wait a very small amount of time (50ms) before doing so. This is done to allow client to, at least partially, read server reply before getting an ECONNRESET. The above is required to make test cases 1070, 1200, 1201 and 1202 pass with Cygwin 1.5.X on W2K. GOPHER test server closes connection after _every_ server-reply, as such, at some point it could require a bigger time or using shutdown() before a server-side initiated disconnection.
2011-07-17sws: don't enable pipelining for requests with content-lengthDaniel Stenberg
Log texts also modified and some white space edits
2011-07-03sws: allow multiple commands in <servercmd>Daniel Stenberg
2010-12-06sws: fix compier warning: external definition with no prior declarationYang Tse
2010-12-02fix compiler warning: rounding, sign extension, or loss of accuracy may resultYang Tse
2010-11-28atoi: remove atoi usageYang Tse
2010-11-19test servers: fix strict aliasing compiler warningsYang Tse
2010-10-02sws: Added writedelay HTTP server commandDan Fandrich
This delays between write operations, hopefully making it easier to spot problems where libcurl doesn't flush the socket properly before waiting for the next response.
2010-08-25sws: added basic gopher supportDaniel Stenberg
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-02-22convert Curl_ultous() and Curl_ultouc() functions to curlx_ultous() andYang Tse
curlx_ultouc(), exposing them through curlx.h to allow proper code reuse later in our test harness.
2010-02-19fix compiler warningYang Tse
2010-02-18fix compiler warningYang Tse
2010-02-16fix Content-Length validationYang Tse
2010-02-15fix compiler warning: conversion from "long" to "size_t" may lose signYang Tse
2010-02-14Overhauled test suite getpart() function. Fixing potential out of boundsYang Tse
stack and memory overwrites triggered with huge test case definitions.
2010-02-04Validate server port argumentYang Tse
2010-02-02avoid possibility of using obsoleted stuffYang Tse
2010-01-08sws and tftpd command line option naming adjustmentsYang Tse
2009-12-22log a message when continuing once sleep time is overYang Tse
2009-12-16Test harness process control enhancementsYang Tse
2009-12-14Fix compiler warningsYang Tse
2009-12-13signal handling to cleanup on SIGINT and SIGTERM, followupYang Tse
2009-12-09signal handling to cleanup on SIGINT and SIGTERM, followupYang Tse
2009-11-27Log sws IPv version, port and pid when exiting due to SIGINT or SIGTERM.Yang Tse
2009-11-26Only attempt to clear the server-logs lock when previously set by this same ↵Yang Tse
server.
2009-11-26signal handling to cleanup on SIGINT and SIGTERMYang Tse
2009-11-23Enhance some debug messages for initialization failures.Yang Tse
Fix compiler warning: conditional expression is constant.
2009-09-17remove line obsoleted with previous commitYang Tse
2009-09-17Attempt to silence bogus compiler warning: "Potential null pointer dereference"Yang Tse
2009-08-29add cast to silent compiler warning with 64bit systems.Gunter Knauf
2009-06-12fix compiler warningYang Tse
2009-06-11fix compiler warningYang Tse
2009-04-27Include <arpa/inet.h> if HAVE_ARPA_INET_H is definedYang Tse
2008-11-25If a HTTP request is Basic and num is already >=1000, the HTTP test serverDan Fandrich
adds 1 to num to get the data section to return. This allows testing authentication negotiations using the Basic authentication method.
2008-10-01Fixed some compiler warnings with gccDan Fandrich
2008-09-26Avoid the use of the '? :' operator inside the call to ourYang Tse
test-server logging function. It doesn't work on some systems.
2008-09-26attempt to avoid HTTP server startup misdetection on some systemsYang Tse
2008-09-21fix compiler warning: defined but not usedYang Tse
2008-09-20fix compiler warning: external definition with no prior declarationYang Tse
2008-09-18fix compiler warning: external declaration in primary source fileYang Tse
2008-09-04fix print formatting string directivesYang Tse
2008-08-29- When libcurl was doing a HTTP POST and the server would respond withDaniel Stenberg
"Connection: close" and actually close the connection after the response-body, libcurl could still have outstanding data to send and it would not properly notice this and stop sending. This caused weirdness and sad faces. http://curl.haxx.se/bug/view.cgi?id=2080222 Note that there are still reasons to consider libcurl's behavior when getting a >= 400 response code while sending data, as Craig Perras' note "http upload: how to stop on error" specifies: http://curl.haxx.se/mail/archive-2008-08/0138.html
2008-07-30Added test case 1051 to test Location: following with PUT, as reportedDan Fandrich
by Ben Sutcliffe. The test when run manually shows a problem in curl, but the test harness web server doesn't run the test correctly so it's disabled for now.
2008-04-23improve synchronization between test harness runtests.pl scriptYang Tse
and test harness servers to minimize risk of false test failures. http://curl.haxx.se/mail/lib-2008-04/0392.html
2008-04-22fix minor memory leak triggered upon test failureYang Tse
2008-04-22Remove fflush() + fsync() previously introduced accelerated writing ofYang Tse
server input and response request files of the test harness sws server. Reintroduce, for test # 1001, the <postcheck> small delay. The delay is needed even with the accelerated writing of server input and response request files in test harness sws server. http://curl.haxx.se/mail/lib-2008-04/0385.html
2008-04-20accelerate the writing of server input and response request filesYang Tse
to disk, trying to defeat file and disk write-behind algorithms
2008-02-28header inclusion cleanupYang Tse