🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27083

Re: Multiprocessing i timeout

#27083
From: królewna
Date: Tue, 22 Dec 2009 09:46
18 lines
1696 bytes
W dniu 22.12.2009 10:29, Bart Ogryczak pisze:

>
> Nie. Importujesz moduł socket. Zmieniasz domyślny timeout. Wszystkie
> sockety utworzone po tej zmianie będą miały taki timeout.
> Np.
>
> import socket
> socket.setdefaulttimeout(twój_timeout)
> ...
>
> klient = multiprocessing.connection.Client() # ten klient będzie miał
> twój timeout.

Oh, przepraszam. Byłam prawie pewna, że właśnie zrobiłam tak jak 
napisałam i zadziałało więc mnie to zdziwiło. Ale najwidoczniej 
napisałam tak jak radziłeś bo teraz sprawdzam i rzeczywiście działa tak 
jak opisujesz.
Technical Details
Message-ID: <hgq4gu$dt8$1@achot.icm.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!not-for-mail
References: <hgo2tn$d8r$2@achot.icm.edu.pl> <6257a74b-fcb0-4c64-843f-d13c1e5931e9@r5g2000yqb.googlegroups.com> <5e45a27a-4515-40c1-b098-f5f2724be64c@r24g2000yqd.googlegroups.com> <hgq38g$cjh$1@achot.icm.edu.pl> <e7877196-1000-46d2-87bf-a968bb1ad4b2@j4g2000yqe.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news2.icm.edu.pl!not-for-mail
From: królewna <krolewna@ee.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: Multiprocessing i timeout
Date: Tue, 22 Dec 2009 10:46:04 +0100
Organization: http://news.icm.edu.pl/
Lines: 19
Message-ID: <hgq4gu$dt8$1@achot.icm.edu.pl>
References: <hgo2tn$d8r$2@achot.icm.edu.pl> <6257a74b-fcb0-4c64-843f-d13c1e5931e9@r5g2000yqb.googlegroups.com>  <5e45a27a-4515-40c1-b098-f5f2724be64c@r24g2000yqd.googlegroups.com>  <hgq38g$cjh$1@achot.icm.edu.pl> <e7877196-1000-46d2-87bf-a968bb1ad4b2@j4g2000yqe.googlegroups.com>
NNTP-Posting-Host: chello089074011030.chello.pl
Mime-Version: 1.0
X-Trace: achot.icm.edu.pl 1261475166 14248 89.74.11.30 (22 Dec 2009 09:46:06 GMT)
X-Complaints-To: abuse@icm.edu.pl
NNTP-Posting-Date: Tue, 22 Dec 2009 09:46:06 +0000 (UTC)
In-Reply-To: <e7877196-1000-46d2-87bf-a968bb1ad4b2@j4g2000yqe.googlegroups.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit