Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Imitation is the sincerest form of plagiarism.


devel / comp.lang.python / Re: Simple TCP proxy

SubjectAuthor
o Re: Simple TCP proxyMorten W. Petersen

1
Re: Simple TCP proxy

<mailman.133.1659120387.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=23446&group=comp.lang.python#23446

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: morphex@gmail.com (Morten W. Petersen)
Newsgroups: comp.lang.python
Subject: Re: Simple TCP proxy
Date: Fri, 29 Jul 2022 20:46:11 +0200
Lines: 50
Message-ID: <mailman.133.1659120387.20444.python-list@python.org>
References: <CAEtLV=qB++RaC4V3KY=fjU+ZFFiPVDiMu54vtU3ThpshE46mSw@mail.gmail.com>
<CAPTjJmp12e9dN8PszftJfKS1Tsx0oNFzN=b2geTXg6fRPAs3Mg@mail.gmail.com>
<CAEtLV=puoKj255t813NAODH4680bwwySah8gOi8DiGkxHrkrXA@mail.gmail.com>
<20220727205810.55ivclftzsggrenx@gmail.com>
<CAEtLV=oYQvFpapDLS+H-sw_tfwpzt-Wi_gGJc6MLyLVRG_WgEg@mail.gmail.com>
<CAPTjJmoMzw26QFPSYRh8cxZ03V0Pcz3nJcMhfq+otOjEYqRJBQ@mail.gmail.com>
<CAEtLV=oRZzkLDu1HhaCrVmaMwGp+vcNsPss-E62Bcn_Pth3ycQ@mail.gmail.com>
<CAPTjJmpTXj1jszkrwwEvm9BRg9xA+wovE0ancNiqvQys8gqj=A@mail.gmail.com>
<CAEtLV=pjhGCvK+8djyKwf9TtXEffTCf=EZzK2VJnHgPFXQzk5w@mail.gmail.com>
<CAEtLV=rDmri8xbuuQC7yRpmXo_vZobfhDhfTX8s6ba43n6AYvw@mail.gmail.com>
<CAPTjJmrbCWkZaNZpBdNwCNK-cfUMHj8ATScDxq76Tq5qEbWS2w@mail.gmail.com>
<6cc646eb-6550-25c9-229c-e109faa84102@pcug.org.au>
<CAEtLV=qsPx1Pu1a0bDyscT7dZWQ6Amt72MiD70sAVsQ25m7vEQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 7+gTZyIoh81878OzPbp8YQ06LVu/mlTIJo3z1IizU9yQ==
Return-Path: <morphex@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=hm24FRNo;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.032
X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'jul': 0.04; '2022': 0.05;
'thread': 0.05; 'e.g.': 0.07; 'space,': 0.07; 'url-ip:65/8': 0.07;
'allocation': 0.09; 'angelico': 0.09; 'cc:addr:python-list': 0.09;
'idle': 0.09; 'ok,': 0.09; 'threads': 0.09; '&gt;': 0.14;
'url:mailman': 0.15; 'memory': 0.15; 'size.': 0.16; 'url:2021':
0.16; '\xc2\xa0|\xc2\xa0': 0.16; 'wrote:': 0.16;
'cc:addr:python.org': 0.20; 'fri,': 0.22; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
'bit': 0.27; 'done': 0.28; 'chris': 0.28; 'received:209.85.210':
0.29; 'takes': 0.31; 'am,': 0.31; 'default': 0.31; 'url-ip:188/8':
0.31; 'andrew': 0.32; 'url-ip:91/8': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; 'header:In-Reply-To:1':
0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35;
"it's": 0.37; 'received:209.85': 0.37; 'received:209': 0.39;
'(see': 0.40; 'something': 0.40; 'four': 0.60; 'url-ip:216/8':
0.60; 'ten': 0.61; 'url-ip:142.250.179/24': 0.61; 'skip:\xc2 10':
0.62; 'url:user': 0.62; 'here': 0.62; 'url-ip:142.250.179.174/32':
0.63; 'once': 0.63; 'music': 0.64; 'box': 0.65; 'url-ip:198/8':
0.65; 'url:instagram': 0.65; 'skip:t 20': 0.66; 'that,': 0.67;
'know.': 0.68; 'cost': 0.69; 'playing': 0.69; 'times': 0.69;
'instagram': 0.70; 'url:info': 0.71; 'thousand': 0.84;
'allocated': 0.84; 'url-ip:184.154/16': 0.84; 'url:06': 0.84;
'url:25': 0.84; 'varies': 0.84; 'e-mail:': 0.88
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=WBvA9k0ldWp+RIiqHYl089GQ9LQh+slA5u5LSYX4rTA=;
b=hm24FRNosnBAJ5N4l5VfssSILl1qCbCXCYT29gJ/LGa3FlqvTRSFZqReONcNnZs8Ns
8V/fL2Z5Gzwsi3Ji+ijZvmeCQr1qwKoHfJMDl1Q4qeXo9zGKrQe8sK286hB7xUGo0IFu
tNeNQSg9884Kxj7FE1QwmPdIYOGX9J8hNrWaZIh7FS8qWM6QySOxbRpKFAno3ZU+n1Pn
glpLbtlukggF4rCAnORLvdBkz9yZjlAfLAhYreiGLbdhi8VHkF1VDcYIfVbK+cHZFsaw
S502Idwc7NJzpNaiuef9Jzla0VabiJMC3Lgef2YGRxoANi1aae2+2ZwymTMTFzfITg4q
yS0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=WBvA9k0ldWp+RIiqHYl089GQ9LQh+slA5u5LSYX4rTA=;
b=vC8Lpe0UMdQM2DDYJOgwFl/DMv6g41if/9KNbrjRxOuk6eO2Ds5/w/TvcRzt1gsRTn
HxrhUvWzmj+FRUn2Z4Q1VYoxw0KBV7Mrld9U5zpd9L4f/jM7nIP48XmnObgjUaLORsEM
RcrDXrk7CSMKIju1AGSVkeo4CLG6eD7wzqqwjucxQULq9XVq3x5wm3Z+wj1drSjvDECS
Y3yEjsspad/hCAHCrQ3MbSX07XxFPsUisDQQmoqDjHQNs8hXG4n/6M1XL1JUs4iaColy
Sby5fsdqHqiWjLFbaJ78PYp20e9MJHrx+Y4dLbd8ItKKC7pAtwwTslK/EHI6i+sQ2RKt
UtGw==
X-Gm-Message-State: AJIora+wBa3TFXd7A9ymZGFABdw3nciIEUipGqt/YQbNou+lEh/iSwLJ
8/IAqAWBhXpogk+0X/DaAMbGEJ+tdZ6fO0p2pcAVbHet
X-Google-Smtp-Source: AGRyM1veu5+yzEwsYXrT/pltukc9Jy88L7SpBn4+ymQbJU2NedtmWKTmVVpziqXXwonQGWXFhGTtK5cuaUxr/XyvUFM=
X-Received: by 2002:a63:4c61:0:b0:416:1e62:953c with SMTP id
m33-20020a634c61000000b004161e62953cmr3892995pgl.24.1659120383091; Fri, 29
Jul 2022 11:46:23 -0700 (PDT)
In-Reply-To: <6cc646eb-6550-25c9-229c-e109faa84102@pcug.org.au>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <https://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>
X-Mailman-Original-Message-ID: <CAEtLV=qsPx1Pu1a0bDyscT7dZWQ6Amt72MiD70sAVsQ25m7vEQ@mail.gmail.com>
X-Mailman-Original-References: <CAEtLV=qB++RaC4V3KY=fjU+ZFFiPVDiMu54vtU3ThpshE46mSw@mail.gmail.com>
<CAPTjJmp12e9dN8PszftJfKS1Tsx0oNFzN=b2geTXg6fRPAs3Mg@mail.gmail.com>
<CAEtLV=puoKj255t813NAODH4680bwwySah8gOi8DiGkxHrkrXA@mail.gmail.com>
<20220727205810.55ivclftzsggrenx@gmail.com>
<CAEtLV=oYQvFpapDLS+H-sw_tfwpzt-Wi_gGJc6MLyLVRG_WgEg@mail.gmail.com>
<CAPTjJmoMzw26QFPSYRh8cxZ03V0Pcz3nJcMhfq+otOjEYqRJBQ@mail.gmail.com>
<CAEtLV=oRZzkLDu1HhaCrVmaMwGp+vcNsPss-E62Bcn_Pth3ycQ@mail.gmail.com>
<CAPTjJmpTXj1jszkrwwEvm9BRg9xA+wovE0ancNiqvQys8gqj=A@mail.gmail.com>
<CAEtLV=pjhGCvK+8djyKwf9TtXEffTCf=EZzK2VJnHgPFXQzk5w@mail.gmail.com>
<CAEtLV=rDmri8xbuuQC7yRpmXo_vZobfhDhfTX8s6ba43n6AYvw@mail.gmail.com>
<CAPTjJmrbCWkZaNZpBdNwCNK-cfUMHj8ATScDxq76Tq5qEbWS2w@mail.gmail.com>
<6cc646eb-6550-25c9-229c-e109faa84102@pcug.org.au>
 by: Morten W. Petersen - Fri, 29 Jul 2022 18:46 UTC

OK, that's useful to know. Thanks. :)

-Morten

On Fri, Jul 29, 2022 at 3:43 AM Andrew MacIntyre <andymac@pcug.org.au>
wrote:

> On 29/07/2022 8:08 am, Chris Angelico wrote:
> > It takes a bit of time to start ten thousand threads, but after that,
> > the system is completely idle again until I notify them all and they
> > shut down.
> >
> > (Interestingly, it takes four times as long to start 20,000 threads,
> > suggesting that something in thread spawning has O(n²) cost. Still,
> > even that leaves the system completely idle once it's done spawning
> > them.)
>
> Another cost of threads can be memory allocated as thread stack space,
> the default size of which varies by OS (see e.g.
>
> https://ariadne.space/2021/06/25/understanding-thread-stack-sizes-and-how-alpine-is-different/
> ).
>
> threading.stack_size() can be used to check and perhaps adjust the
> allocation size.
>
> --
> -------------------------------------------------------------------------
> Andrew I MacIntyre "These thoughts are mine alone..."
> E-mail: andymac@pcug.org.au (pref) | Snail: PO Box 370
> andymac@bullseye.apana.org.au (alt) | Belconnen ACT 2616
> Web: http://www.andymac.org/ | Australia
> --
> https://mail.python.org/mailman/listinfo/python-list
>

--
I am https://leavingnorway.info
Videos at https://www.youtube.com/user/TheBlogologue
Twittering at http://twitter.com/blogologue
Blogging at http://blogologue.com
Playing music at https://soundcloud.com/morten-w-petersen
Also playing music and podcasting here:
http://www.mixcloud.com/morten-w-petersen/
On Google+ here https://plus.google.com/107781930037068750156
On Instagram at https://instagram.com/morphexx/


devel / comp.lang.python / Re: Simple TCP proxy

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor