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, and learning the right handshake, if you will. So it's something that will work, until someone gets determined to make a mess. In short, it will give better control than backlog does, enabling Python-style code and logic to deal with different situations. I was about to say "deal with things intelligently"; but I think "intelligent" is a word that doesn't fit here or in many other applications. Say for example this service comes under attack for unknown reasons; it could be possible to teach the proxy to only accept connections to the backend server for IP addresses / subnets that have previously n number of transmissions back and forth. If you know that the service will have max 50 different clients. Anyway, what Chris said earlier, I think we can file that under "eagerness to tech others and show what you know". Right Chris? :) Regards, Morten On Sat, Jul 30, 2022 at 10:31 PM Barry <ba...@barrys-emacs.org> wrote: > > > > > On 30 Jul 2022, at 20:33, Morten W. Petersen <morp...@gmail.com> 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 buffer size 8-fold for reading and writing in > run.py, > > and the CPU usage went way down, and the transfer speed went up to 449 > MB/s. > > You are trading latency for through put. > > > > > So it would require well more than a gigabit network interface to max out > > STP throughput; CPU usage was around 30-40% max, on one processor core. > > With how many connections? > > > > > There is good enough, and then there's general practice and/or what is > > regarded as an elegant solution. I'm looking for good enough, and in the > > process I don't mind pushing the envelope on Python threading. > > You never did answer my query on why a large backlog is not good enough. > Why do you need this program at all? > > Barry > > > > -Morten > > > > On Sat, Jul 30, 2022 at 12:59 PM Roel Schroeven <r...@roelschroeven.net> > > wrote: > > > >> 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 > >> reason to take it off on the messenger. > >> > >> -- > >> "Iceland is the place you go to remind yourself that planet Earth is a > >> machine... and that all organic life that has ever existed amounts to a > >> greasy > >> film that has survived on the exterior of that machine thanks to furious > >> improvisation." > >> -- Sam Hughes, Ra > >> > >> -- > >> 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/ > > -- > > 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/ -- https://mail.python.org/mailman/listinfo/python-list