Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libevent/dist/test Adjust timers a bit so that ...
details: https://anonhg.NetBSD.org/src/rev/469e2f4e8713
branches: trunk
changeset: 758611:469e2f4e8713
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Nov 11 14:08:45 2010 +0000
description:
Adjust timers a bit so that the http timer can get a chance to expire,
even when running under qemu on platforms with a clock-skew problem.
The original 3-second timer was intended to be "longer than the http
timeout" (which is 2 seconds), and the updated 5-second value still meets
this requirement. The updated value also meets the requirement even when
the http timeout stretches to 4-seconds under qemu.
This is part 1 of getting the libevent tests working on port-amd64 with
qemu.
diffstat:
external/bsd/libevent/dist/test/regress_http.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5b948358ce34 -r 469e2f4e8713 external/bsd/libevent/dist/test/regress_http.c
--- a/external/bsd/libevent/dist/test/regress_http.c Thu Nov 11 13:58:58 2010 +0000
+++ b/external/bsd/libevent/dist/test/regress_http.c Thu Nov 11 14:08:45 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: regress_http.c,v 1.1.1.1 2009/11/02 10:01:04 plunky Exp $ */
+/* $NetBSD: regress_http.c,v 1.2 2010/11/11 14:08:45 pgoyette Exp $ */
/*
* Copyright (c) 2003-2006 Niels Provos <provos%citi.umich.edu@localhost>
* All rights reserved.
@@ -857,7 +857,7 @@
test_ok = 1;
timerclear(&tv);
- tv.tv_sec = 3; /* longer than the http time out */
+ tv.tv_sec = 5; /* longer than the http time out */
event_loopexit(&tv);
}
@@ -893,7 +893,7 @@
}
timerclear(&tv);
- tv.tv_sec = 3; /* longer than the http time out */
+ tv.tv_sec = 5; /* longer than the http time out */
/* launch a new request on the persistent connection in 6 seconds */
event_once(-1, EV_TIMEOUT, close_detect_launch, evcon, &tv);
Home |
Main Index |
Thread Index |
Old Index