Re: Simple TCP proxy

2022-07-31 Thread Morten W. Petersen
Well, initially I was just curious. As the name implies, it's a TCP proxy, and different features could go into that. I looked at for example port knocking for hindering unauthorized access to the (protected) TCP service SMPS, but there you also have the possibility of someone eavesdropping

Re: Simple TCP proxy

2022-07-30 Thread Barry
 > On 30 Jul 2022, at 20:33, Morten W. Petersen wrote: > I thought it was a bit much. > > I just did a bit more testing, and saw that the throughput of wget through > regular lighttpd was 1,3 GB/s, while through STP it was 122 MB/s, and using > quite a bit of CPU. > > Then I increased the

Re: Simple TCP proxy

2022-07-30 Thread Morten W. Petersen
I thought it was a bit much. I just did a bit more testing, and saw that the throughput of wget through regular lighttpd was 1,3 GB/s, while through STP it was 122 MB/s, and using quite a bit of CPU. Then I increased the buffer size 8-fold for reading and writing in run.py, and the CPU usage

Re: Simple TCP proxy

2022-07-30 Thread Barry Scott
Morten, As Chris remarked you need to learn a number of networking, python, system performance and other skills to turn your project into production code. Using threads does not scale very well. Its uses a lot of memory and raises CPU used just to do the context switches. Also the GIL means

Re: Simple TCP proxy

2022-07-30 Thread Roel Schroeven
Morten W. Petersen schreef op 29/07/2022 om 22:59: OK, sounds like sunshine is getting the best of you. It has to be said: that is uncalled for. Chris gave you good advice, with the best of intentions. Sometimes we don't like good advice if it says something we don't like, but that's no

Re: Simple TCP proxy

2022-07-29 Thread Morten W. Petersen
traffic though, and don't have a big > budget for "website system administration". So maybe that's where I'm > partly going with this, just making a proxy that can be put in front and > deal with a lot of common situations, in a reasonably good way. > > > > If I run into

Re: Simple TCP proxy

2022-07-29 Thread Chris Angelico
at's where I'm partly going > with this, just making a proxy that can be put in front and deal with a lot > of common situations, in a reasonably good way. > > If I run into problems with threads that can't be managed, then a switch to > something like the queue_manager funct

Re: Simple TCP proxy

2022-07-29 Thread Morten W. Petersen
with some dynamic bits and heavily cached by squid. Most websites don't get a lot of traffic though, and don't have a big budget for "website system administration". So maybe that's where I'm partly going with this, just making a proxy that can be put in front and deal with a lot

Re: Simple TCP proxy

2022-07-29 Thread Morten W. Petersen
OK, that's useful to know. Thanks. :) -Morten On Fri, Jul 29, 2022 at 3:43 AM Andrew MacIntyre 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

Re: Simple TCP proxy

2022-07-28 Thread Chris Angelico
On Fri, 29 Jul 2022 at 11:42, Andrew MacIntyre 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

Re: Simple TCP proxy

2022-07-28 Thread Andrew MacIntyre
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

Re: Simple TCP proxy

2022-07-28 Thread Chris Angelico
On Fri, 29 Jul 2022 at 07:24, Morten W. Petersen wrote: > > Forwarding to the list as well. > > -- Forwarded message - > From: Morten W. Petersen > Date: Thu, Jul 28, 2022 at 11:22 PM > Subject: Re: Simple TCP proxy > To: Chris Angelico > > > W

Re: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
> > In the places I code disk space of a few MiB is not an issue. > > Barry > > > -Morten > > On Thu, Jul 28, 2022 at 8:31 AM Barry wrote: > >> >> >> > On 27 Jul 2022, at 17:16, Morten W. Petersen wrote: >> > >> > Hi. >> > >

Fwd: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
Forwarding to the list as well. -- Forwarded message - From: Morten W. Petersen Date: Thu, Jul 28, 2022 at 11:22 PM Subject: Re: Simple TCP proxy To: Chris Angelico Well, an increase from 0.1 seconds to 0.2 seconds on "polling" in each thread whether or not the

Re: Simple TCP proxy

2022-07-28 Thread Barry
gt; > On 27 Jul 2022, at 17:16, Morten W. Petersen wrote: >> > >> > 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 >

Re: Simple TCP proxy

2022-07-28 Thread Chris Angelico
On Thu, 28 Jul 2022 at 21:01, Morten W. Petersen wrote: > > Well, I was thinking of following the socketserver / handle layout of code > and execution, for now anyway. > > It wouldn't be a big deal to make them block, but another option is to > increase the sleep period 100% for every 200

Re: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
Well, I was thinking of following the socketserver / handle layout of code and execution, for now anyway. It wouldn't be a big deal to make them block, but another option is to increase the sleep period 100% for every 200 waiting connections while waiting in handle. Another thing is that it's

Re: Simple TCP proxy

2022-07-28 Thread Chris Angelico
On Thu, 28 Jul 2022 at 19:41, Morten W. Petersen wrote: > > Hi Martin. > > I was thinking of doing something with the handle function, but just this > little tweak: > > https://github.com/morphex/stp/commit/9910ca8c80e9d150222b680a4967e53f0457b465 > > made a huge difference in CPU usage.

Re: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
any meaningful work: they are put on the SimpleQueue and > only when they are popped then they will work (send/recv data). > > The difference then between the OS and your impl is minimal. The only > case that I can think is that on the clients' side it may exist a > timeout for the acce

Re: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
. Petersen wrote: > > > > 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 ti

Re: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
OK, I'll have a look at using something else than _threading. I quickly saw a couple of points where code could be optimized for speed, the loop that transfers data back and forth also has low throughput, but first priority was getting it working and seeing that it is fairly stable. Regards,

Re: Simple TCP proxy

2022-07-28 Thread Barry
> On 27 Jul 2022, at 17:16, Morten W. Petersen wrote: > > 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 p

Re: Simple TCP proxy

2022-07-27 Thread Martin Di Paola
s' side it may exist a timeout for the acceptance of the connection so your proxy server will eagerly accept these connections so no timeout is possible(*) On a side note, you implementation is too thread-naive: it uses plain Python lists, integers and boolean variables which are not thread safe. It

Re: Simple TCP proxy

2022-07-27 Thread Chris Angelico
On Thu, 28 Jul 2022 at 04:32, Morten W. Petersen wrote: > > Hi Chris. > > You're thinking of the backlog argument of listen? Yes, precisely. > Well, STP will accept all connections, but can limit how many of the accepted > connections that are active at any given time. > > So when I bombed it

Re: Simple TCP proxy

2022-07-27 Thread Morten W. Petersen
th 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: > > How's this different from what the networking subsystem already does? >

Re: Simple TCP proxy

2022-07-27 Thread Chris Angelico
On Thu, 28 Jul 2022 at 02:15, Morten W. Petersen wrote: > > 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

Simple TCP proxy

2022-07-27 Thread Morten W. Petersen
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

[issue213721] urllib handles proxy badly

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue532007] urllib ftp broken if Win32 proxy

2022-04-10 Thread admin
Change by admin : -- github: None -> 36284 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue413135] urllib2 fails with proxy requiring auth

2022-04-10 Thread admin
Change by admin : -- github: None -> 34265 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue403640] incomplete proxy handling in URLLIB

2022-04-10 Thread admin
Change by admin : -- github: None -> 33859 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue210849] Fwd: Debian Bug#42318: urllib.py has problems with malformed proxy env. variables (PR#59)

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue445815] urllib doesn't handle proxy exceptions

2022-04-10 Thread admin
Change by admin : -- github: None -> 34857 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue426866] urllib and socket fail with MS proxy

2022-04-10 Thread admin
Change by admin : -- github: None -> 34538 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue426504] urllib fail with MS proxy

2022-04-10 Thread admin
Change by admin : -- github: None -> 34531 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue405939] HTTPConnection Host hdr wrong w/ proxy

2022-04-10 Thread admin
Change by admin : -- github: None -> 34065 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue213721] urllib handles proxy badly

2022-04-10 Thread admin
Change by admin : -- github: None -> 33049 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue210849] Fwd: Debian Bug#42318: urllib.py has problems with malformed proxy env. variables (PR#59)

2022-04-10 Thread admin
Change by admin : -- github: None -> 32849 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29251] [doc] Class __dict__ is only a mapping proxy

2022-03-08 Thread Irit Katriel
Irit Katriel added the comment: Thank you Stanley, I agree that this is no longer needed. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29251] [doc] Class __dict__ is only a mapping proxy

2022-02-26 Thread Stanley
Stanley added the comment: >From what I can see, the original patch changed ... and the *dict* dictionary is the namespace containing definitions for class body and is copied to a standard dictionary to become the __dict__ attribute into this ... and the *dict* dictionary is copied to the

[issue20854] multiprocessing.managers.Server: problem with returning proxy of registered object

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24393] Test urllib2_localnet fails depending on host proxy configuration

2021-12-07 Thread Irit Katriel
Irit Katriel added the comment: I'm closing this as there was no activity for 6 years and 3.5 is no longer maintained. Furthermore, it's not clear what problem the patch trying to solve. If this problem still exists on current versions (>= 3.9), please create a new issue and explain in more

[issue19864] [doc] multiprocessing Proxy docs need locking semantics explained

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: multiprocessing Proxy docs need locking semantics explained -> [doc] multiprocessing Proxy docs need locking semantics explained type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.3, Pyth

[issue29251] [doc] Class __dict__ is only a mapping proxy

2021-12-05 Thread Irit Katriel
ule’s namespace as a dictionary object." 2. "__dict__ The dictionary containing the class’s namespace." -- keywords: +easy -patch nosy: +iritkatriel title: Class __dict__ is only a mapping proxy -> [doc] Class __dict__ is only a mapping proxy versions: +Python 3.10, Python 3

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-11-20 Thread 狂男风
狂男风 added the comment: Sorry I didn't see this comment before. Can it be merged now? -- ___ Python tracker ___ ___

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-09-16 Thread Steve Dower
Steve Dower added the comment: I think the PR is basically ready, unfortunately it's stuck behind a CI issue we only just fixed, and needs to merge from main before it'll clear. Posting here once CI is green will get attention faster than on GitHub. -- versions: +Python 3.11 -Python

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-09-07 Thread Keuin
Keuin added the comment: The fix is available as a pull request on GitHub for months (https://github.com/python/cpython/pull/26307). However, it seems that this pull request needs an approval from one maintainer before running any test. Could anyone help this out? -- nosy: +keuin

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-08-03 Thread Ken Jin
Ken Jin added the comment: > Just chiming in to say that this is still broken for me on Python 3.9.6 >From what I understand, the patch landed on 2021-07-02, 4 days after Python >3.9.6's release date of 2021-06-28, so it wasn't included. It should come in 3.9.7, which should be out on

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-08-03 Thread Stephen Carboni
Stephen Carboni added the comment: Just chiming in to say that this is still broken for me on Python 3.9.6, Win10/64: https://pastebin.com/64F2iKaj But, works for 3.10.0b4. -- nosy: +stephen.entropy ___ Python tracker

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-30 Thread Dennis Lee Bieber
On Fri, 30 Jul 2021 13:17:50 +0200, Peter Otten <__pete...@web.de> declaimed the following: > >https://mail.python.org/pipermail/python-list/2021-July/902975.html > >You are now officially archived ;) Pity the choice was the boolean "X-No-Archive"... Consensus implementation of an

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-30 Thread Peter Otten
On 29/07/2021 17:43, Dennis Lee Bieber wrote: On Thu, 29 Jul 2021 15:45:26 +0200, Peter Otten <__pete...@web.de> declaimed the following: On 28/07/2021 18:40, Dennis Lee Bieber wrote: On Wed, 28 Jul 2021 09:04:40 +0200, Peter Otten <__pete...@web.de> declaimed the following: Perhaps it has

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-29 Thread Dennis Lee Bieber
On Thu, 29 Jul 2021 15:45:26 +0200, Peter Otten <__pete...@web.de> declaimed the following: >On 28/07/2021 18:40, Dennis Lee Bieber wrote: >> On Wed, 28 Jul 2021 09:04:40 +0200, Peter Otten <__pete...@web.de> >> declaimed the following: >> >>> >>> Perhaps it has something to do with the

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-29 Thread Peter Otten
On 28/07/2021 18:40, Dennis Lee Bieber wrote: On Wed, 28 Jul 2021 09:04:40 +0200, Peter Otten <__pete...@web.de> declaimed the following: Perhaps it has something to do with the X-No-Archive flag set by Dennis? According to my properties page in Agent, I've turned that off except if

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-28 Thread hongy...@gmail.com
On Wednesday, July 28, 2021 at 3:05:11 PM UTC+8, Peter Otten wrote: > On 28/07/2021 07:32, Cameron Simpson wrote: > > On 27Jul2021 19:24, Hongyi Zhao wrote: > >> On Wednesday, July 28, 2021 at 7:25:27 AM UTC+8, cameron...@gmail.com > >> wrote: > >>> Just to follow on a bit to Dennis: > >> >

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-28 Thread Peter Otten
On 28/07/2021 07:32, Cameron Simpson wrote: On 27Jul2021 19:24, Hongyi Zhao wrote: On Wednesday, July 28, 2021 at 7:25:27 AM UTC+8, cameron...@gmail.com wrote: Just to follow on a bit to Dennis: But I can't any reply from Dennis in this issue. Odd, because I replied to his reply to you

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-28 Thread Cameron Simpson
On 27Jul2021 19:24, Hongyi Zhao wrote: >On Wednesday, July 28, 2021 at 7:25:27 AM UTC+8, cameron...@gmail.com wrote: >> Just to follow on a bit to Dennis: > >But I can't any reply from Dennis in this issue. Odd, because I replied to his reply to you :-) If you're using a threaded view of the

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-27 Thread hongy...@gmail.com
earch(r.text) > > returned None instead of a regular expression match object. That means > that "r.text" way not what was expected. > > Like Dennis, i note the remark "for internal use only", suggesting this > was some internal Google code for doing somethin

Re: Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-27 Thread Cameron Simpson
remark "for internal use only", suggesting this was some internal Google code for doing something fiddly. It may not be the best thing for what you're trying to do. WRT to a socks proxy, Dennis showed that the issue occurs even without a proxy. I would advocate doing all your debugging wi

Generate a Google Translate API token through the Socks5 proxy using gtoken.py

2021-07-27 Thread hongy...@gmail.com
I want to use [gtoken.py](https://github.com/ssut/py-googletrans/blob/master/googletrans/gtoken.py) through a socks5 proxy. Based on the comment [here](https://github.com/encode/httpx/issues/203#issuecomment-611914974) and the example usage in [gtoken.py](https://github.com/ssut/py

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your quick pull request, Dennis! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0a08f22184aef6e36bb8bb7ad84207e47594f46e by Miss Islington (bot) in branch '3.9': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (#27325)

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 659030c7d56a329c1aa559678f2df15e306215e4 by Miss Islington (bot) in branch '3.10': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (GH-27324)

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +25869 pull_request: https://github.com/python/cpython/pull/27325 ___ Python tracker ___

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5370f0a82aaa4ba617070d5c71d2b18236096ac0 by Dennis Sweeney in branch 'main': bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) https://github.com/python/cpython/commit/5370f0a82aaa4ba617070d5c71d2b18236096ac0

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25868 pull_request: https://github.com/python/cpython/pull/27324 ___ Python tracker

[issue44720] Weakref proxy crashes on null tp_iternext slot.

2021-07-23 Thread Dennis Sweeney
in iteratively deleted object cause segfault -> Weakref proxy crashes on null tp_iternext slot. ___ Python tracker <https://bugs.python.org/issue44720> ___ ___ Python-bugs-list mai

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Guido van Rossum
Guido van Rossum added the comment: Oh no! Was there a test for this that I ignored? Thanks for cleaning up after me.-- --Guido (mobile) -- ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 7a2d2ed1330e464ac186c09501ef51b8261f4292 by Irit Katriel in branch '3.10': [3.10] bpo-30256: [doc] Fix formatting error in news (GH-26994) (GH-26998) https://github.com/python/cpython/commit/7a2d2ed1330e464ac186c09501ef51b8261f4292 --

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 91db097358bcb00832e53d410035a8b7fcfdd9c3 by Miss Islington (bot) in branch '3.9': bpo-30256: [doc] Fix formatting error in news (GH-26994) (GH-26996) https://github.com/python/cpython/commit/91db097358bcb00832e53d410035a8b7fcfdd9c3 --

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25558 pull_request: https://github.com/python/cpython/pull/26998 ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 2560c612c89ea2534b90a266aabf76dc74d93a12 by Ken Jin in branch 'main': bpo-30256: [doc] Fix formatting error in news (GH-26994) https://github.com/python/cpython/commit/2560c612c89ea2534b90a266aabf76dc74d93a12 -- nosy: +iritkatriel

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +25556 pull_request: https://github.com/python/cpython/pull/26996 ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-02 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 12.0 -> 13.0 pull_requests: +2 pull_request: https://github.com/python/cpython/pull/26994 ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: Merged and backported to 3.10, 3.9. Let's forget about 3.8 or earlier (Lukasz removed the needs-backport-to-3.8 and -3.7 labels from GH-16341 on May 4). I should note that landing this was not a great experience: - There's a closed PR with the fix and

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 8aa45de6c6d84397b772bad7e032744010bbd456 by Miss Islington (bot) in branch '3.9': bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (GH-26989) https://github.com/python/cpython/commit/8aa45de6c6d84397b772bad7e032744010bbd456

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +25551 pull_request: https://github.com/python/cpython/pull/26989 ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 3ec3e0f83c34eda1ad89b731e68f4a22a5f39333 by Miss Islington (bot) in branch '3.10': bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (#26987) https://github.com/python/cpython/commit/3ec3e0f83c34eda1ad89b731e68f4a22a5f39333

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: (The original PR was too stale to merge, so I just merged the combined PR and added a Co-Authored-By header.) Now doing the backports. -- resolution: -> fixed ___ Python tracker

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 85b920498b42c69185540ecc2f5c4907fd38d877 by finefoot in branch 'main': bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) https://github.com/python/cpython/commit/85b920498b42c69185540ecc2f5c4907fd38d877 --

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +25550 pull_request: https://github.com/python/cpython/pull/26988 ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 11.0 -> 12.0 pull_requests: +25549 pull_request: https://github.com/python/cpython/pull/26987 ___ Python tracker

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2021-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: I'm going to merge both PRs. -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list

[issue32465] [urllib] proxy_bypass_registry - extra error handling required for ProxyOverride, Windows under proxy environment

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: There are currently no unit tests for proxy_bypass_registry, proxy_bypass, and nothing much for proxy_open. Those should be added as part of this work. -- keywords: +easy nosy: +iritkatriel versions: +Python 3.11 -Python 2.7

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-06-07 Thread 狂男风
狂男风 added the comment: We should have no problem with how to parse HTTP proxy and HTTPS proxy. But I recently discovered an additional problem when using `requests`, that is, how to parse the SOCKS proxy correctly. I investigated the parsing of some commonly used software: `curl` will try

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-05-28 Thread 狂男风
狂男风 added the comment: I removed the multi-proxies-per-protocol support from the PR I submitted. The reason is that: 1. This code reads the proxy settings from the Windows registry. Multi-proxies-per-protocol cannot be resolved by Windows system. 2. Using a comma-separated string

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2021-05-28 Thread Irit Katriel
Irit Katriel added the comment: I think the problem is still there: https://github.com/python/cpython/blame/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/urllib/request.py#L2746 if proxyOverride ends with a ';' then the last "" is considered a match for any val in host. --

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-05-22 Thread 狂男风
Change by 狂男风 : -- keywords: +patch pull_requests: +24906 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26307 ___ Python tracker ___

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-05-19 Thread Chris Xiao
Chris Xiao added the comment: I found this problem too. expecting for fixing -- nosy: +chrisxiao ___ Python tracker ___ ___

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread Paul Bryan
Cloudflare operates as a reverse proxy in front of your service(s); clients of your services access them through an endpoint that Cloudflare stands up. DNS records point to Cloudflare, and TLS certificates must be provisioned in Cloudflare to match. For all intents and purposes, you would

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread Christian Seberino
> > > a) your reverse proxy must be colocated with the service it fronts on the > same machine; > b) your network infrastructure transparently encrypts traffic between your > proxy and the service; or > c) your proxy must negotiate its own TLS connection(s) with the service.

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread Michael Torrie
" MITM service so to speak. For my own purposes, sometimes I'll create a limited, wildcard certificate signed by my own authority which works only in my own browser (this is the same technique used by certain regimes to MITM the entire country!). The proxy then uses that certificate. It's

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread Paul Bryan
There is absolutely nothing wrong with building your own reverse proxy in front of your own service, as long as you control both. This constitutes a tiered network/application architecture, and it's a common practice. There's no man in the middle; there's no imposter; its all "you".

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread cseb...@gmail.com
> Is it even possible to be secure in that way? This is, by definition, > a MITM, and in order to be useful, it *will* have to decrypt > everything. So if someone compromises the monitor, they get > everything. Chris I hear all your security concerns and I'm aware of them. I *really*

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-08 Thread Chris Angelico
On Fri, Apr 9, 2021 at 12:42 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-04-09 at 00:17:59 +1000, > Chris Angelico wrote: > > > Also, you'd better be really REALLY sure that your monitoring is > > legal, ethical, and not deceptive. > > Not to mention *secure*. Your monitor

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-08 Thread 2QdxY4RzWzUUiLuE
On 2021-04-09 at 00:17:59 +1000, Chris Angelico wrote: > Also, you'd better be really REALLY sure that your monitoring is > legal, ethical, and not deceptive. Not to mention *secure*. Your monitor increases the attack surface of the system as a whole. If I break into your monitor, can I

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-08 Thread Chris Angelico
On Fri, Apr 9, 2021 at 12:11 AM cseb...@gmail.com wrote: > > I'm trying to create an application that stands in between all > connections to a remote server to monitor behavior for > security and compliance reasons. > > I'm guessing I'll have all users log into this middle man p

question about basics of creating a PROXY to MONITOR network activity

2021-04-08 Thread cseb...@gmail.com
I'm trying to create an application that stands in between all connections to a remote server to monitor behavior for security and compliance reasons. I'm guessing I'll have all users log into this middle man proxy application instead of logging into the original website? Are there any

[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes added the comment: It's not a public API but it's a stable API. It hasn't changed since Python 2.6 and commit 366d6262f81 from 2007. It's unlikely to change in the near future. -- ___ Python tracker

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Ryan Hiebert added the comment: Thank you, Christian. It sounds like you believe that we should view the `_get_socket` method as a public interface? That at least makes it possible to use a proxy socket through an appropriate mechanism, which solves my use-case

[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes added the comment: The Python standard library has no builtin support for socks proxy. I suggest that you report issues with socks library to the author of the package. By the way the smptlib makes it really easy to override the socket object with a custom implementation

  1   2   3   4   5   6   7   8   9   10   >