summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-04-16 02:27:54 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-04-16 02:27:54 +0000
commit3d9cfdd67afc7b084e35cdc1fab7a0f3a5354095 (patch)
tree6c7b0f267c54a05022bd734a65765f80f6e6ab02 /test
parent408e9295d52456351bd1a67c8435380ee32b47aa (diff)
downloadlibapr-3d9cfdd67afc7b084e35cdc1fab7a0f3a5354095.tar.gz
Convert ap_poll() to use microseconds instead of seconds for
the timeout interval. The OS/2 change was a cop-out, essentially using second resolution instead of millisecond resolution. The existing logic to update timeout for repeat calls to select() after EINTR wasn't quite right, and it was silly for me to try to do the right thing given that I wasn't going to compile or run it anyway. Also fixed were a couple of storage leaks around select() calls. Probably no app was affected. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59868 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/ab_apr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ab_apr.c b/test/ab_apr.c
index 53d284cca..7d36bbca4 100644
--- a/test/ab_apr.c
+++ b/test/ab_apr.c
@@ -667,7 +667,7 @@ static void read_connection(struct connection *c)
static void test(void)
{
ap_time_t now;
- time_t timeout;
+ ap_interval_time_t timeout;
ap_int16_t rv;
int i;
@@ -742,7 +742,7 @@ static void test(void)
requests = done; /* so stats are correct */
}
/* Timeout of 30 seconds. */
- timeout = 30;
+ timeout = 30 * AP_USEC_PER_SEC;
n = concurrency;
ap_poll(readbits, &n, timeout);