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 AD0429970 for ; Thu, 14 Jun 2012 19:06:48 +0000 (UTC) Received: (qmail 5110 invoked by uid 500); 14 Jun 2012 19:06:48 -0000 Delivered-To: apmail-thrift-user-archive@thrift.apache.org Received: (qmail 5088 invoked by uid 500); 14 Jun 2012 19:06:48 -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 5080 invoked by uid 99); 14 Jun 2012 19:06:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 19:06:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dan.kuebrich@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 19:06:42 +0000 Received: by wibhm6 with SMTP id hm6so6755087wib.1 for ; Thu, 14 Jun 2012 12:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Y/ahc0W3ItuGi2RPvoyoT2zwxg4Asy1L1pywgKDLxgM=; b=R0dYmrpW9LrSfvC+HZkG6KpCNudYaOyqaiXt78LWfFZ2JDO92PnFOjPh3tZPTwsTP1 Toy7JU+dPsAQFvVH5XDAirmqkI8SHmtH0XTvb/Spp2v/1SW3JR86+P8Xt7Gn4Z/6EjLq DlImNCd16jVKKP6l26E9Ce6kW8CzqBcBOMtxDMY5AlCPG77Cs6BiGfEWxaJfj3UJtcHg zGHYH1l6Q5Yyu3oWKCCOkLsGG6SGJS/f9FPEG+zKveBOZlCB5482AkL5fNlOPiBq06uh ZnUOylUGWL06M4WgnGzuoSwVd8lS71Fi9ma3okBaCuMlJ2AkWHKkhsGD/IwJHja8DbSa 08+Q== Received: by 10.180.83.168 with SMTP id r8mr6517269wiy.22.1339700781604; Thu, 14 Jun 2012 12:06:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.163.141 with HTTP; Thu, 14 Jun 2012 12:06:01 -0700 (PDT) In-Reply-To: <4FDA30BB.1080500@subwest.com> References: <4FDA30BB.1080500@subwest.com> From: Dan Kuebrich Date: Thu, 14 Jun 2012 15:06:01 -0400 Message-ID: Subject: Re: Python - Killing an active Thrift call To: user@thrift.apache.org Content-Type: multipart/alternative; boundary=f46d0442844e315d4004c27365a2 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0442844e315d4004c27365a2 Content-Type: text/plain; charset=ISO-8859-1 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? On Thu, Jun 14, 2012 at 2:43 PM, Steve wrote: > Hi, > > Is it possible to kill an active/open request in Python? > > 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. > > I've tried to close the transport, thinking it would fail out, but no luck. > > Thanks. > > --f46d0442844e315d4004c27365a2--