Daniel Stenberg
685366006c
connection-monitor: always log disconnect when enabled
...
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-12 00:08:37 +02:00
Daniel Stenberg
176f7ea3bb
sws: support <servercmd> for CONNECT requests
...
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-05 11:24:23 +02:00
Daniel Stenberg
28dc509dde
sws: add 'connection-monitor' command support
...
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-07-05 11:24:23 +02:00
Yang Tse
4d3fb91fb4
test servers: build adjustment
...
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-04-10 17:32:06 +02:00
Daniel Stenberg
805788e043
SWS: refuse to serve CONNECT unless running as proxy
2012-03-22 00:12:37 +01:00
Yang Tse
2b9fafd622
sws.c: fix proxy mode secondary connection monitoring condition
2012-01-17 12:28:28 +01:00
Yang Tse
b15024be4d
sws.c: improve proxy mode torture testing support - followup to 18c6c8a5
2012-01-16 19:01:35 +01:00
Yang Tse
18c6c8a5e7
sws.c: improve proxy mode torture testing support - followup to c731fc58
2012-01-16 12:30:03 +01:00
Yang Tse
c731fc58ea
sws.c: improve proxy mode torture testing support - followup to d4bf87dc
2012-01-15 20:13:32 +01:00
Yang Tse
d4bf87dc0e
sws.c: improve proxy mode torture testing support
2012-01-13 05:13:48 +01:00
Yang Tse
123c92c904
sws.c: replace sleep() usage with wait_ms()
2012-01-09 22:50:47 +01:00
Yang Tse
2705af6267
sws.c: some compiler warning fixes
2012-01-08 19:28:46 +01:00
Yang Tse
dd69a3e868
sws.c: 812fa73057
follow-up
2012-01-06 01:52:45 +01:00
Yang Tse
812fa73057
sws.c: some IPv6 proxy mode peparatory adjustments
2012-01-05 20:52:48 +01:00
Yang Tse
4bc6c1a026
sws.c: fix proxy mode segfault
2012-01-04 19:14:19 +01:00
Daniel Stenberg
82180643f4
test proxy supports CONNECT
...
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.
2012-01-03 15:01:22 +01:00
Yang Tse
fd10c047df
sws.c: HTTP and GOPHER test server-side connection closing adjustment
...
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-10-14 17:33:05 +02:00
Daniel Stenberg
650a504b2f
sws: don't enable pipelining for requests with content-length
...
Log texts also modified and some white space edits
2011-07-17 00:39:23 +02:00
Daniel Stenberg
c7a4df16e0
sws: allow multiple commands in <servercmd>
2011-07-03 19:15:06 +02:00
Yang Tse
34127c7adc
sws: fix compier warning: external definition with no prior declaration
2010-12-06 14:51:44 +01:00
Yang Tse
07f60235b0
fix compiler warning: rounding, sign extension, or loss of accuracy may result
2010-12-02 18:46:13 +01:00
Yang Tse
5db0a412ff
atoi: remove atoi usage
2010-11-28 23:11:14 +01:00
Yang Tse
a768e39b2d
test servers: fix strict aliasing compiler warnings
2010-11-19 19:20:38 +01:00
Dan Fandrich
15622e69a9
sws: Added writedelay HTTP server command
...
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-10-02 00:21:59 +02:00
Daniel Stenberg
6ed72fd7fa
sws: added basic gopher support
2010-08-25 14:21:25 +02:00
Daniel Stenberg
2309b4e330
remove the CVSish $Id$ lines
2010-03-24 11:02:54 +01:00
Yang Tse
439f62bfa8
convert Curl_ultous() and Curl_ultouc() functions to curlx_ultous() and
...
curlx_ultouc(), exposing them through curlx.h to allow proper code reuse
later in our test harness.
2010-02-22 18:56:29 +00:00
Yang Tse
048438345a
fix compiler warning
2010-02-19 18:02:38 +00:00
Yang Tse
6e461e45c3
fix compiler warning
2010-02-18 12:31:24 +00:00
Yang Tse
f442dd6496
fix Content-Length validation
2010-02-16 11:17:00 +00:00
Yang Tse
d5b2d8e081
fix compiler warning: conversion from "long" to "size_t" may lose sign
2010-02-15 17:40:35 +00:00
Yang Tse
68d83a8142
Overhauled test suite getpart() function. Fixing potential out of bounds
...
stack and memory overwrites triggered with huge test case definitions.
2010-02-14 13:14:17 +00:00
Yang Tse
f47b84b57f
Validate server port argument
2010-02-04 17:17:19 +00:00
Yang Tse
232d17ec64
avoid possibility of using obsoleted stuff
2010-02-02 12:39:10 +00:00
Yang Tse
a114b7b1c0
sws and tftpd command line option naming adjustments
2010-01-08 01:48:54 +00:00
Yang Tse
7bede9180d
log a message when continuing once sleep time is over
2009-12-22 13:45:01 +00:00
Yang Tse
002ed5f298
Test harness process control enhancements
2009-12-16 19:55:35 +00:00
Yang Tse
364d76aca7
Fix compiler warnings
2009-12-14 13:27:50 +00:00
Yang Tse
6e9a484ea6
signal handling to cleanup on SIGINT and SIGTERM, followup
2009-12-13 03:45:32 +00:00
Yang Tse
0653fa107f
signal handling to cleanup on SIGINT and SIGTERM, followup
2009-12-09 18:41:43 +00:00
Yang Tse
f07f17f2a4
Log sws IPv version, port and pid when exiting due to SIGINT or SIGTERM.
2009-11-27 12:01:25 +00:00
Yang Tse
cbd527843b
Only attempt to clear the server-logs lock when previously set by this same server.
2009-11-26 10:15:08 +00:00
Yang Tse
fba233bb34
signal handling to cleanup on SIGINT and SIGTERM
2009-11-26 04:38:29 +00:00
Yang Tse
094afbeb56
Enhance some debug messages for initialization failures.
...
Fix compiler warning: conditional expression is constant.
2009-11-23 16:11:50 +00:00
Yang Tse
be5c815f63
remove line obsoleted with previous commit
2009-09-17 14:02:50 +00:00
Yang Tse
31e106ced2
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
2009-09-17 11:45:27 +00:00
Gunter Knauf
f1320d6733
add cast to silent compiler warning with 64bit systems.
2009-08-29 15:44:31 +00:00
Yang Tse
c2ce2aa4de
fix compiler warning
2009-06-12 09:01:41 +00:00
Yang Tse
3ca0b9bb47
fix compiler warning
2009-06-11 17:46:33 +00:00
Yang Tse
af41fb79b5
Include <arpa/inet.h> if HAVE_ARPA_INET_H is defined
2009-04-27 23:59:41 +00:00