From 094e5be9cc00b77330aa9da5ad4bb4927f131b2b Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Mon, 11 May 2009 22:42:13 +0100 Subject: [PATCH 06/11] Remove 6 hour timeout restriction. * dbus/dbus-pending-call.c (_dbus_pending_call_new_unlocked): Now that the timeout math won't overflow, don't clamp to six hours. Signed-off-by: Scott James Remnant --- dbus/dbus-pending-call.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/dbus/dbus-pending-call.c b/dbus/dbus-pending-call.c index 8e840f0..15564aa 100644 --- a/dbus/dbus-pending-call.c +++ b/dbus/dbus-pending-call.c @@ -100,13 +100,6 @@ _dbus_pending_call_new_unlocked (DBusConnection *connection, if (timeout_milliseconds == -1) timeout_milliseconds = _DBUS_DEFAULT_TIMEOUT_VALUE; - /* clamp the timeout otherwise math in - * _dbus_connection_block_for_reply would get all overflow-prone - */ - if ((timeout_milliseconds > _DBUS_ONE_HOUR_IN_MILLISECONDS * 6) && - (timeout_milliseconds < _DBUS_INT_MAX)) - timeout_milliseconds = _DBUS_ONE_HOUR_IN_MILLISECONDS * 6; - if (!dbus_pending_call_allocate_data_slot (¬ify_user_data_slot)) return NULL; -- 1.6.0.4