Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78379

Re: joining thread hangs unexpectedly

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.051
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'clause': 0.09; 'url:github': 0.09; 'thread': 0.14; 'created.': 0.16; 'subject:joining': 0.16; 'thread,': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'replacing': 0.19; 'thu,': 0.19; 'command': 0.22; 'separate': 0.22; 'creating': 0.23; 'handling': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message- id:@mail.gmail.com': 0.30; '25,': 0.31; 'end,': 0.31; 'sep': 0.31; 'anyone': 0.31; 'file': 0.32; 'problem': 0.35; 'connection': 0.35; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'project': 0.37; 'christian': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'previous': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'tell': 0.60; 'helps': 0.61; "you're": 0.61; 'personal': 0.63; 'finally': 0.65; 'services.': 0.70; '11:45': 0.84
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=qTFHReHJj/VbxpYdBQFK+R2kLthYD3C/IBjZJHvMS0I=; b=UHvVaVX0inp7Jro6edwbpeu6WPmnNZdirLRLjnrtfd5KOyNkTKfjBcAHbvrbWXqQQP uuXoIt9ytYAonATmC0OupVqW7NZZHxEUnyPbh0wm0lEfR/vYgcEIqSj5i7jgD2PwNM9/ ho3/PegJnyiO03BLbAVgqEWSfytxA+Lxf+UBucQPXPraUMcwC4eTvHNuqZmQH2cyf2SM q3WQuGkyFqcfq3ElmnsmbSJEUC41+n2ttf5PiosamQUkJ12cFKeg+VqSeqySaOqa2qcC LstQJPf0RgcZTvzaYoWXu9lpNzdvuJxutgN6+Co+S5C1uedvwLljDhkQBdfeXihsJd8Q TiFw==
X-Received by 10.70.37.208 with SMTP id a16mr26318731pdk.147.1411739290089; Fri, 26 Sep 2014 06:48:10 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CA+9L8FzjUfAtPwnRM3iUfX+AtVhAa7NshAyNx_XZyToYupXRgA@mail.gmail.com>
References <CA+9L8FzjUfAtPwnRM3iUfX+AtVhAa7NshAyNx_XZyToYupXRgA@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Fri, 26 Sep 2014 07:47:30 -0600
Subject Re: joining thread hangs unexpectedly
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14394.1411739717.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1411739717 news.xs4all.nl 2957 [2001:888:2000:d::a6]:46282
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78379

Show key headers only | View raw


On Thu, Sep 25, 2014 at 11:45 PM, Christian Calderon
<calderon.christian760@gmail.com> wrote:
> I am working on a personal project that helps minecraft clients connect to
> minecraft servers using tor hidden services. I am handling the client
> connection in a separate thread, but when I try to join the threads they
> hang. The problem is in the file called hiddencraft.py, in the function main
> at the end, in the finally clause at the bottom. Can anyone tell me what I
> am doing wrong?
>
> https://github.com/ChrisCalderon/hiddencraft

You're creating a separate Queue for each thread but when you store
each one in the queue_ variable you're replacing the previous one, so
when you go to kill them you only ever send the die command to the
last thread created.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: joining thread hangs unexpectedly Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-26 07:47 -0600

csiph-web