From 4a6a3c257d0d974fb9e797e93a2ed6574225d803 Mon Sep 17 00:00:00 2001 From: "which.linden" Date: Wed, 25 Jun 2008 11:55:29 -0700 Subject: [PATCH] [svn r132] Timeout calls previously didn't work because the number of arguments passed in to schedule_call didn't match the signature of the _do_timout callback. --- eventlet/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventlet/api.py b/eventlet/api.py index 267ec83..82e8f7c 100644 --- a/eventlet/api.py +++ b/eventlet/api.py @@ -145,7 +145,7 @@ def trampoline(fd, read=None, write=None, timeout=None): hub.remove_descriptor(fileno) greenlib.switch(self, fd) if timeout is not None: - t = hub.schedule_call(timeout, _do_timeout) + t = hub.schedule_call(timeout, _do_timeout, fileno) hub.add_descriptor(fileno, read and cb, write and cb, _do_close) return hub.switch()