Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Virtue is a relative term. -- Spock, "Friday's Child", stardate 3499.1


devel / comp.lang.python / Simple TCP proxy

SubjectAuthor
o Simple TCP proxyMorten W. Petersen

1
Simple TCP proxy

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

  copy mid

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

  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: Simple TCP proxy
Date: Wed, 27 Jul 2022 12:56:12 +0200
Lines: 30
Message-ID: <mailman.103.1658938065.20444.python-list@python.org>
References: <CAEtLV=qB++RaC4V3KY=fjU+ZFFiPVDiMu54vtU3ThpshE46mSw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de sF0LX6zgbV0SmY5ycQfmuQZh6Zqmez9DOa5aWAf0tL5A==
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=kNbQfSUc;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: UNSURE 0.233
X-Spam-Level: **
X-Spam-Evidence: '*H*': 0.55; '*S*': 0.02; 'project,': 0.03; 'url-
ip:140.82/16': 0.03; 'url:github': 0.14; 'url-ip:140/8': 0.15;
'sort,': 0.16; 'url:tree': 0.16; 'to:addr:python-list': 0.20;
'code': 0.23; "i'd": 0.24; 'requests': 0.28;
'received:209.85.210': 0.29; 'seem': 0.31; 'url-ip:91/8': 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; "i'll": 0.33;
'server': 0.33; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'files': 0.36; 'received:209.85':
0.37; 'received:209': 0.39; 'url-ip:216/8': 0.60; 'url-
ip:142.250.179/24': 0.61; 'url:user': 0.62; 'here': 0.62; 'url-
ip:142.250.179.174/32': 0.63; 'share': 0.63; 'pass': 0.64;
'music': 0.64; 'url-ip:198/8': 0.65; 'url:instagram': 0.65;
'stand': 0.67; 'playing': 0.69; 'front': 0.70; 'instagram': 0.70;
'url:info': 0.71; 'time:': 0.81; 'further,': 0.84; 'handled': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:from:date:message-id:subject:to;
bh=8//KplVyr5inxNTUDZivWqRVUh/EhSzCQqYWH8yTq4U=;
b=kNbQfSUcIyYgHLLo84khJm9cv8x7n86BW2RABYqnaehcZCaXEjjMLnyRzsuiCi1T5/
Z5nU30LryTmFv4YoBIr7CwcpXOiW1yabGLlXPMKkXUWyqKY/APEjDrdDE4oHd1hk2inC
SgoL7h27QvLG0NckEZXIoUXo0S1AppS4xoMQRUUIOwEoB07ndbmZikonQHoTaN2R3zBl
e8sSSwlnZK6qkdKMm0fRMhmOONg0m9ctY+7mWcxxxACbvpq7iO6DjYtZbaJasc6lGqV9
dDyoUn5qUKpfJoBITqQUalN8Ceut4dJQYCqRcrZIV7ZE+7i9B2Lz+HfAnz8V5HxmKabV
t9VQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=8//KplVyr5inxNTUDZivWqRVUh/EhSzCQqYWH8yTq4U=;
b=TzhIbphTcI+adH32kZ+hLHlqF+g+nMrnKdZpVVQYCRUocaUrSRudCFwsM40NfwZJmX
uoiDTvFQggM+kEtpvpWy/D6/jmaniWN9OQLLHiJFAuy6L0+1NCB6OtnSJ7SD9GO0R22h
veh4bIbKY1bkj0Yr9JfKTulgZBpv+xfT4lc589o5A0WrwCFTjxKWWiqg+SAMUpY594JP
dvR7B0oLr0DEMTLiA0GbNeCr2dOkG3f6J/aOYz7Yw/HNeBORvek/HEma3We9mihdkldx
vcq6OJ3eDBdVs1DBdR65JD8FTi7V7z68zLL7Rgr/ajqMlPqOxMNB50in9jdhtBrSNHyb
s9jQ==
X-Gm-Message-State: AJIora+9QP/vyjQ4LuFv2PDwGkLdEM7s3r4vAeDOGkmoGFG3YZWYHSJ1
yDBybRcG/Xp6Y/wyj85tg0C/o/7CqPb8NU0SC6j0SkiKXDI=
X-Google-Smtp-Source: AGRyM1utPjeguAxKPYuO4w5VhPVhNoiolXUKUbyh5h73HBoy+kGtrZkGgG1HjOP2vHoOco92OPLlycB43z6q0CuAIIU=
X-Received: by 2002:a63:4c61:0:b0:416:1e62:953c with SMTP id
m33-20020a634c61000000b004161e62953cmr18040604pgl.24.1658919383510; Wed, 27
Jul 2022 03:56:23 -0700 (PDT)
X-Mailman-Approved-At: Wed, 27 Jul 2022 12:07:44 -0400
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=qB++RaC4V3KY=fjU+ZFFiPVDiMu54vtU3ThpshE46mSw@mail.gmail.com>
 by: Morten W. Petersen - Wed, 27 Jul 2022 10:56 UTC

Hi.

I'd like to share with you a recent project, which is a simple TCP proxy
that can stand in front of a TCP server of some sort, queueing requests and
then allowing n number of connections to pass through at a time:

https://github.com/morphex/stp

I'll be developing it further, but the the files committed in this tree
seem to be stable:

https://github.com/morphex/stp/tree/9910ca8c80e9d150222b680a4967e53f0457b465

I just bombed that code with 700+ requests almost simultaneously, and STP
handled it well.

Regards,

Morten

--
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 / Simple TCP proxy

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor