Return-Path: X-Original-To: apmail-thrift-user-archive@www.apache.org Delivered-To: apmail-thrift-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0950997E for ; Thu, 14 Jun 2012 19:12:29 +0000 (UTC) Received: (qmail 14566 invoked by uid 500); 14 Jun 2012 19:12:29 -0000 Delivered-To: apmail-thrift-user-archive@thrift.apache.org Received: (qmail 14540 invoked by uid 500); 14 Jun 2012 19:12:29 -0000 Mailing-List: contact user-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@thrift.apache.org Delivered-To: mailing list user@thrift.apache.org Received: (qmail 14530 invoked by uid 99); 14 Jun 2012 19:12:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 19:12:29 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jpaton2@gmail.com designates 209.85.212.42 as permitted sender) Received: from [209.85.212.42] (HELO mail-vb0-f42.google.com) (209.85.212.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 19:12:21 +0000 Received: by vbbfs19 with SMTP id fs19so2816833vbb.1 for ; Thu, 14 Jun 2012 12:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=5AcIQ8sexPMW0vBLtgNKgrrsq3Y5PKPgZNvnE07KGYo=; b=YoeLbBc9E+UqkHW18xQinCRGbVOVYYzRJ5/eN+JWmmwJgE2LvghlO7eiDinsSp/IiK XQjuaBVljl6HhjK5dhEK4Gm7evAd/W7ye2jOvLW0aTzSAB5t+WS+LO0IqhbbGvwuBeGR pqrcSuz0er90nhxaUNsBFIt0WySlohU8nk/TPDBk2BnD1JaVFqGKWqFCEWFF1PpAxtJv T7j9e/mqPnslMVcokM9zphOY6VXOz5DTW2NbQPSJPWLvzVjxi26nmPHlVLFYjEPXNF2e XQfGyOCNykbgCsrayKKsnLVJX9XmLxuZPtrBmblMffhdta+yEcYwx3RAHO4baSj/lH2t N4ug== Received: by 10.52.240.178 with SMTP id wb18mr1353129vdc.100.1339701120554; Thu, 14 Jun 2012 12:12:00 -0700 (PDT) Received: from [192.168.11.49] (97-87-15-71.dhcp.mdsn.wi.charter.com. [97.87.15.71]) by mx.google.com with ESMTPS id c17sm6961624vdj.11.2012.06.14.12.11.59 (version=SSLv3 cipher=OTHER); Thu, 14 Jun 2012 12:11:59 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Python - Killing an active Thrift call From: James Paton In-Reply-To: Date: Thu, 14 Jun 2012 14:11:57 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4FDA30BB.1080500@subwest.com> To: user@thrift.apache.org X-Mailer: Apple Mail (2.1278) I asked a question like this awhile ago on this list. I was told that = Thrift does not have a way to interrupt an ongoing RPC from the client. = In the past I have done this by interrupting the thread that was making = the call (this was in Java), but this is probably not quite right as I = imagine it leaves the server spinning. -- Jim On Jun 14, 2012, at 2:06 PM, Dan Kuebrich wrote: > I don't know that there's a built-in facility for this, but it sounds = like > what timeouts are often used for. How are you receiving the info that = the > other side won't return? Can you use timeouts on the thrift client = sockets > for this? >=20 > On Thu, Jun 14, 2012 at 2:43 PM, Steve wrote: >=20 >> Hi, >>=20 >> Is it possible to kill an active/open request in Python? >>=20 >> I have locking code around a thrift call, but sometimes the other = side >> (server) doesn't return (not in my control). I would like to force = that >> connection to close so that the thread can continue on. >>=20 >> I've tried to close the transport, thinking it would fail out, but no = luck. >>=20 >> Thanks. >>=20 >>=20