sws.c: HTTP and GOPHER test server-side connection closing adjustment
authorYang Tse <yangsita@gmail.com>
Fri, 14 Oct 2011 15:33:05 +0000 (17:33 +0200)
committerYang Tse <yangsita@gmail.com>
Fri, 14 Oct 2011 15:33:05 +0000 (17:33 +0200)
commitfd10c047df694e55abc6950391d6822cecc3000b
tree1f9b9e9542ca1c188b16e2ca4e03315fd98bc140
parentea12c72d122cb35548979fb86dcec7f1488fc5d6
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.
tests/server/sws.c