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


Groups > comp.lang.python > #15901

Re: Why sock.bind is always report 10048 error when in a script with multiprocessing

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 <rosuav@gmail.com>
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> <mailman.2829.1321630394.27778.python-list@python.org> <14330307.286.1321631316567.JavaMail.geo-discussion-forums@yqcm23> <674531.1586.1321631509432.JavaMail.geo-discussion-forums@yqhd1> <mailman.2832.1321632261.27778.python-list@python.org> <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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2834.1321633010.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sat, Nov 19, 2011 at 3:11 AM, Junfeng Hu <hujunfeng@gmail.com> 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

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


Thread

Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 02:23 -0800
  Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 07:20 -0800
  Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Chris Angelico <rosuav@gmail.com> - 2011-11-19 02:33 +1100
    Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 07:48 -0800
    Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 07:48 -0800
      Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 07:51 -0800
      Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 07:51 -0800
        Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Chris Angelico <rosuav@gmail.com> - 2011-11-19 03:04 +1100
          Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 08:11 -0800
          Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 08:11 -0800
            Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Chris Angelico <rosuav@gmail.com> - 2011-11-19 03:16 +1100
      Re: Why sock.bind is always report 10048 error when in a script with multiprocessing MRAB <python@mrabarnett.plus.com> - 2011-11-18 16:55 +0000
        Re: Why sock.bind is always report 10048 error when in a script with multiprocessing Junfeng Hu <hujunfeng@gmail.com> - 2011-11-18 18:45 -0800

csiph-web