aboutsummaryrefslogtreecommitdiff
path: root/tests/server/sws.c
AgeCommit message (Collapse)Author
2012-07-12connection-monitor: always log disconnect when enabledDaniel Stenberg
This makes verifying easier and makes us more sure curl closes the connection only at the correct point in time. Adjusted test 206 and 1008 accordingly and updated the docs for it.
2012-07-05sws: support <servercmd> for CONNECT requestsDaniel Stenberg
I moved out the servercmd parsing into a its own function called parse_servercmd() and made sure it gets used also when the test number is extracted from CONNECT requests. It turned out sws didn't do that previously!
2012-07-05sws: add 'connection-monitor' command supportDaniel Stenberg
Using this, the server will output in the protocol log when the connection gets disconnected and thus we will verify correctly in the test cases that the connection doesn't get closed prematurely. This is important for example NTLM to work. Documentation added to FILEFORMAT, test 503 updated to use this.
2012-04-10test servers: build adjustmentYang Tse
Undefine CURL_HIDDEN_SYMBOLS libcurl private preprocessor macro that might leak from lib/setup.h into source files where this should not be defined.
2012-03-22SWS: refuse to serve CONNECT unless running as proxyDaniel Stenberg
2012-01-17sws.c: fix proxy mode secondary connection monitoring conditionYang Tse
2012-01-16sws.c: improve proxy mode torture testing support - followup to 18c6c8a5Yang Tse
2012-01-16sws.c: improve proxy mode torture testing support - followup to c731fc58Yang Tse
2012-01-15sws.c: improve proxy mode torture testing support - followup to d4bf87dcYang Tse
2012-01-13sws.c: improve proxy mode torture testing supportYang Tse
2012-01-09sws.c: replace sleep() usage with wait_ms()Yang Tse
2012-01-08sws.c: some compiler warning fixesYang Tse
2012-01-06sws.c: 812fa73057 follow-upYang Tse
2012-01-05sws.c: some IPv6 proxy mode peparatory adjustmentsYang Tse
2012-01-04sws.c: fix proxy mode segfaultYang Tse
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