aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-04-22 12:40:05 +0000
committerYang Tse <yangsita@gmail.com>2008-04-22 12:40:05 +0000
commit95fd093c4a49aca1015e178a5c08ca9dd9234bef (patch)
tree6c4a757dc648b1a633250f697f7d8167cee93a3e /tests/server
parented1ad28e2988aa79682eb9317e64c999137e20d7 (diff)
Remove fflush() + fsync() previously introduced accelerated writing of
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
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/sws.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index b7c950324..41bac4f01 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -512,24 +512,6 @@ void storerequest(char *reqbuf, ssize_t totalsize)
totalsize-writeleft, totalsize, REQUEST_DUMP);
}
-#ifdef HAVE_FFLUSH
- do {
- res = fflush(dump);
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error flushing file %s error: %d %s",
- REQUEST_DUMP, error, strerror(error));
-#endif
-
-#ifdef HAVE_FSYNC
- do {
- res = fsync(fileno(dump));
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error syncing file %s error: %d %s",
- REQUEST_DUMP, error, strerror(error));
-#endif
-
do {
res = fclose(dump);
} while(res && ((error = ERRNO) == EINTR));
@@ -800,24 +782,6 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
buffer += written;
} while(count>0);
-#ifdef HAVE_FFLUSH
- do {
- res = fflush(dump);
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error flushing file %s error: %d %s",
- RESPONSE_DUMP, error, strerror(error));
-#endif
-
-#ifdef HAVE_FSYNC
- do {
- res = fsync(fileno(dump));
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error syncing file %s error: %d %s",
- RESPONSE_DUMP, error, strerror(error));
-#endif
-
do {
res = fclose(dump);
} while(res && ((error = ERRNO) == EINTR));