Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!newsfeed10.multikabel.net!spool10.prolocation.net!multikabel.net!newsfeed20.multikabel.net!amsnews11.chello.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'bug': 0.02; 'socket': 0.04; 'subject:when': 0.07; 'subject:report': 0.09; 'subject:error': 0.10; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'received:209.85.210.174': 0.18; 'received:mail- iy0-f174.google.com': 0.18; 'once.': 0.23; 'header:In-Reply-To:1': 0.23; 'suspect': 0.24; "i'm": 0.26; 'sat,': 0.28; 'message- id:@mail.gmail.com': 0.29; 'problem': 0.29; 'nov': 0.31; 'to:addr :python-list': 0.32; 'creates': 0.34; 'something': 0.36; 'subject:skip:m 10': 0.36; 'think': 0.37; 'subject:with': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'goes': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; '2011': 0.62; '19,': 0.68; 'subject:always': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uz6B2gRb/K2XErmVIMF9yqsdzBTIV8seTB5nYvmw4K0=; b=OREPUjzJrift1+guw+jjifk8MJpeap52JOIDtnbonLqJhvfXNySRiJfLvFya7g3phk Yo9XqbiWVwCB/mjgEJPzGc+mWx11KuZ453xywrC0mx1QDVtFJVCpmwCWxKfUEXiy4Pij AvTE81K2HkvSZsTo4etvZT+GCyT94FpHbVC98= MIME-Version: 1.0 In-Reply-To: <15809319.188.1321632700957.JavaMail.geo-discussion-forums@yqdr22> References: <12715937.830.1321611809592.JavaMail.geo-discussion-forums@yqoo7> <14330307.286.1321631316567.JavaMail.geo-discussion-forums@yqcm23> <674531.1586.1321631509432.JavaMail.geo-discussion-forums@yqhd1> <15809319.188.1321632700957.JavaMail.geo-discussion-forums@yqdr22> Date: Sat, 19 Nov 2011 03:16:47 +1100 Subject: Re: Why sock.bind is always report 10048 error when in a script with multiprocessing From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321633010 news.xs4all.nl 6861 [2001:888:2000:d::a6]:52218 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15901 On Sat, Nov 19, 2011 at 3:11 AM, Junfeng Hu wrote: > Hi Chris. > The socket only binded once. That's the problem I'm puzzleing, I think it may a bug of multiprocessing in windows, or something I missed. I don't know how multiprocessing goes about initializing those subprocesses; I suspect that's where it creates the additional sockets. ChrisA