Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-08-07 | Use select in sws, which has better cross-platform support than poll | Joe Mason | |
2012-08-07 | Use cross-platform curlx_nonblock instead of fcntl in sws | Joe Mason | |
2012-08-02 | Add a polling loop in main to read from more than one socket at once. Add ↵ | Joe Mason | |
the O_NONBLOCK and SO_KEEPALIVE flag to all sockets. Note that several loops which used to continue on a return value of 0 (theoretical since 0 would never be returned without O_NONBLOCK) now break on 0 so that they won't continue reading until after poll is called again. | |||
2012-08-02 | Change return values of get_request, accept_connection and ↵ | Joe Mason | |
service_connection to add a return code for non-blocking sockets: now -1 means error or connection finished, 1 means data was read, and 0 means there is no data available now so need to wait for poll (new return value) | |||
2012-08-02 | Hoist the loop out of get_request, and make sure that it can be reentered ↵ | Joe Mason | |
when a request is half-finished. Note the the req struct used to be re-initialized AFTER reading pipeline data, so now that we initialize it from the caller we must be careful not to overwrite the pipeline data. Also we now need to handle the case where the buffer is already full when get_request is called - previously this never happened as it was always called with an empty buffer and looped until done. Now get_request is called in a loop, so the next step is to run the loop on a socket only when poll signals it is readable. | |||
2012-08-02 | Move blocks of code from the sws main loop into their own functions for ↵ | Joe Mason | |
easier refactoring later. The next step will be to call the correct function after a poll, rather than looping unconditionally | |||
2012-08-02 | Remove the --fork option of sws, since it makes refactoring to use poll more ↵ | Joe Mason | |
complicated and should be redundant once we poll | |||
2012-07-12 | SWS: use of uninitialized memory fix | Daniel Stenberg | |
I made "connmon" not get initialized properly before use, and I use the big hammer and make sure we always clear the entire struct to avoid any problem like this in the future. | |||
2012-07-12 | connection-monitor: always log disconnect when enabled | Daniel 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-05 | sws: support <servercmd> for CONNECT requests | Daniel 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-05 | sws: add 'connection-monitor' command support | Daniel 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-10 | test servers: build adjustment | Yang 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-22 | SWS: refuse to serve CONNECT unless running as proxy | Daniel Stenberg | |
2012-01-17 | sws.c: fix proxy mode secondary connection monitoring condition | Yang Tse | |
2012-01-16 | sws.c: improve proxy mode torture testing support - followup to 18c6c8a5 | Yang Tse | |
2012-01-16 | sws.c: improve proxy mode torture testing support - followup to c731fc58 | Yang Tse | |
2012-01-15 | sws.c: improve proxy mode torture testing support - followup to d4bf87dc | Yang Tse | |
2012-01-13 | sws.c: improve proxy mode torture testing support | Yang Tse | |
2012-01-09 | sws.c: replace sleep() usage with wait_ms() | Yang Tse | |
2012-01-08 | sws.c: some compiler warning fixes | Yang Tse | |
2012-01-06 | sws.c: 812fa73057 follow-up | Yang Tse | |
2012-01-05 | sws.c: some IPv6 proxy mode peparatory adjustments | Yang Tse | |
2012-01-04 | sws.c: fix proxy mode segfault | Yang Tse | |
2012-01-03 | test proxy supports CONNECT | Daniel 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-14 | sws.c: HTTP and GOPHER test server-side connection closing adjustment | Yang 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-17 | sws: don't enable pipelining for requests with content-length | Daniel Stenberg | |
Log texts also modified and some white space edits | |||
2011-07-03 | sws: allow multiple commands in <servercmd> | Daniel Stenberg | |
2010-12-06 | sws: fix compier warning: external definition with no prior declaration | Yang Tse | |
2010-12-02 | fix compiler warning: rounding, sign extension, or loss of accuracy may result | Yang Tse | |
2010-11-28 | atoi: remove atoi usage | Yang Tse | |
2010-11-19 | test servers: fix strict aliasing compiler warnings | Yang Tse | |
2010-10-02 | sws: Added writedelay HTTP server command | Dan 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-25 | sws: added basic gopher support | Daniel Stenberg | |
2010-03-24 | remove the CVSish $Id$ lines | Daniel Stenberg | |
2010-02-22 | convert Curl_ultous() and Curl_ultouc() functions to curlx_ultous() and | Yang Tse | |
curlx_ultouc(), exposing them through curlx.h to allow proper code reuse later in our test harness. | |||
2010-02-19 | fix compiler warning | Yang Tse | |
2010-02-18 | fix compiler warning | Yang Tse | |
2010-02-16 | fix Content-Length validation | Yang Tse | |
2010-02-15 | fix compiler warning: conversion from "long" to "size_t" may lose sign | Yang Tse | |
2010-02-14 | Overhauled test suite getpart() function. Fixing potential out of bounds | Yang Tse | |
stack and memory overwrites triggered with huge test case definitions. | |||
2010-02-04 | Validate server port argument | Yang Tse | |
2010-02-02 | avoid possibility of using obsoleted stuff | Yang Tse | |
2010-01-08 | sws and tftpd command line option naming adjustments | Yang Tse | |
2009-12-22 | log a message when continuing once sleep time is over | Yang Tse | |
2009-12-16 | Test harness process control enhancements | Yang Tse | |
2009-12-14 | Fix compiler warnings | Yang Tse | |
2009-12-13 | signal handling to cleanup on SIGINT and SIGTERM, followup | Yang Tse | |
2009-12-09 | signal handling to cleanup on SIGINT and SIGTERM, followup | Yang Tse | |
2009-11-27 | Log sws IPv version, port and pid when exiting due to SIGINT or SIGTERM. | Yang Tse | |
2009-11-26 | Only attempt to clear the server-logs lock when previously set by this same ↵ | Yang Tse | |
server. |