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 bu

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 went

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 tha

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 reaso

Re: Simple TCP proxy

2022-07-29 Thread Morten W. Petersen
anyone who actually has server load issues. > > I'm sorry if that sounds harsh, but the fact is, you can do a lot > better by using this to learn more about networking than you'll ever > do by trying to pitch it to any specific company. > > That said though: it's

Re: Simple TCP proxy

2022-07-29 Thread Chris Angelico
etworking than you'll ever do by trying to pitch it to any specific company. That said though: it's still good to know what your (theoretical) use-case is. That'll tell you what kinds of connection spam to throw at your proxy (lots of idle sockets? lots of HTTP requests? billio

Re: Simple TCP proxy

2022-07-29 Thread Morten W. Petersen
, 2022 at 12:11 AM Chris Angelico wrote: > 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

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 they

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 thr

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
not scalable. > > 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 a

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 waitin

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 nic

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. Hundreds

Re: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
e accepted, but only 25 were actively sending and receiving > data > >at any given time. First come, first served. > > > >Regards, > > > >Morten > > > >On Wed, Jul 27, 2022 at 8:00 PM Chris Angelico wrote: > > > >> On Thu, 28 Jul 2022 at 02:1

Re: Simple TCP proxy

2022-07-28 Thread Morten W. Petersen
, 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 thr

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, Mor

Re: Simple TCP proxy

2022-07-27 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

Re: Simple TCP proxy

2022-07-27 Thread Martin Di Paola
simultaneous connections, all of them were accepted, but only 25 were actively sending and receiving data at any given time. First come, first served. Regards, Morten On Wed, Jul 27, 2022 at 8:00 PM Chris Angelico wrote: On Thu, 28 Jul 2022 at 02:15, Morten W. Petersen wrote: > > Hi.

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 w

Re: Simple TCP proxy

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

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, b

Re: IDLE, TCP/IP problem.

2020-01-16 Thread Greg Ewing
On 16/01/20 10:06 pm, Muju's message wrote: “IDLE cannot bind to a TCP/IP port, which is necessary to communicate with its Python execution server. This might be because no networking is installed on this computer. There might be firewall settings or anti-virus software preventing the

IDLE, TCP/IP problem.

2020-01-16 Thread Muju's message
Sent from Mail for Windows 10 When I open IDLE a popup appears, which says “IDLE cannot bind to a TCP/IP port, which is necessary to communicate with its Python execution server. This might be because no networking is installed on this computer. Run IDLE with the -n command line switch to

Re: How to reset TCP connection on Linux?

2018-12-03 Thread Grant Edwards
On 2018-12-03, Jon Ribbens wrote: > On 2018-12-03, Grant Edwards wrote: >> How does one reset a TCP connection on Linux? Note that I want to >> reset the connection, not close it. > > Something like the following should work I believe, although I have > not tested it:

Re: How to reset TCP connection on Linux?

2018-12-03 Thread Jon Ribbens
On 2018-12-03, Grant Edwards wrote: > How does one reset a TCP connection on Linux? Note that I want to > reset the connection, not close it. Something like the following should work I believe, although I have not tested it: sock.setsockopt( socket.SOL_

How to reset TCP connection on Linux?

2018-12-03 Thread Grant Edwards
How does one reset a TCP connection on Linux? Note that I want to reset the connection, not close it. I need to emulate the rude behavior of a particular app (that's sending the RST packet) in order to try to find a bug another app (the one that's receiving the RST). -- Gra

Tcp Socket Receive

2017-04-02 Thread specx
Hello, � I have a tcp server coded with python and my packets include a 2 bytes header which is just the length of the following data. The problem is how can I be sure I received 2 bytes and not just one byte. In Qt, I use bytesAvailable function. However, here I just use sock.recv(2) but it

Re: Send Msg To Specific Tcp Client from Tcp Server Python

2016-08-10 Thread Anil reddy reddy M
On Thursday, August 11, 2016 at 11:36:47 AM UTC+5:30, dieter wrote: > Anil reddy reddy M writes: > > > I was written a simple tcp server in python, which is nicely communicating > > with multiple tcp clients. My Tcp Server can accept multiple clients at > > time, each c

Re: Send Msg To Specific Tcp Client from Tcp Server Python

2016-08-10 Thread dieter
Anil reddy reddy M writes: > I was written a simple tcp server in python, which is nicely communicating > with multiple tcp clients. My Tcp Server can accept multiple clients at time, > each client as a new thread. I want send message to specific tcp client after > some time. &g

Send Msg To Specific Tcp Client from Tcp Server Python

2016-08-10 Thread Anil reddy reddy M
I was written a simple tcp server in python, which is nicely communicating with multiple tcp clients. My Tcp Server can accept multiple clients at time, each client as a new thread. I want send message to specific tcp client after some time. I can client Address from connction, addr

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
On Thursday, February 25, 2016 at 1:56:21 PM UTC-5, Martin A. Brown wrote: > Hello again Ray, > > >> >I'm new to python networking. I am waiting TCP server/client app by > >> >using python built-in SocketServer. My problem is if client get > >> >ki

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Martin A. Brown
Hello again Ray, >> >I'm new to python networking. I am waiting TCP server/client app by >> >using python built-in SocketServer. My problem is if client get >> >killed, then the tcp port will never get released, in CLOSE_WAIT >> >> I did not thoroug

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
On Thursday, February 25, 2016 at 12:56:10 PM UTC-5, Ray wrote: > hi, > > I'm new to python networking. I am waiting TCP server/client app by using > python built-in SocketServer. My problem is if client get killed, then the > tcp port will never get released, in CLOSE_WAIT

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
On Thursday, February 25, 2016 at 1:18:05 PM UTC-5, Martin A. Brown wrote: > >I'm new to python networking. I am waiting TCP server/client app by > >using python built-in SocketServer. My problem is if client get > >killed, then the tcp port will never get released, in CL

Re: tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Martin A. Brown
>I'm new to python networking. I am waiting TCP server/client app by >using python built-in SocketServer. My problem is if client get >killed, then the tcp port will never get released, in CLOSE_WAIT I did not thoroughly review your code (other than to see that you are not usin

tcp networking question (CLOSE_WAIT)

2016-02-25 Thread Ray
hi, I'm new to python networking. I am waiting TCP server/client app by using python built-in SocketServer. My problem is if client get killed, then the tcp port will never get released, in CLOSE_WAIT maybe I didn't do the handler right? or anyway I can catch the client get killed

SSL over TCP Client\server

2015-12-24 Thread Tal Bar-Or
Hi All , I need to write some basic tcp client/server that communicate over SSL Its seems i managed to run the server side listen with SSL but i am missing the client part. If someone could advice me how to saet the client will be appreciated Thanks Server side class

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread sohcahtoa82
On Friday, October 16, 2015 at 2:44:53 AM UTC-7, lucasfneves14 wrote: > How did you do it? I took the advice of just being myself. -- https://mail.python.org/mailman/listinfo/python-list

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread Random832
lucasfneves14 writes: > How did you do it? That's an impressive reply gap. If anyone's wondering, this is apparently in reply to this from March: http://thread.gmane.org/gmane.comp.python.general/774441 -- https://mail.python.org/mailman/listinfo/python-list

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread Grant Edwards
On 2015-10-16, lucasfneves14 wrote: > How did you do it? I just climbed in and pushed the button. Same as always. -- Grant Edwards grant.b.edwardsYow! This MUST be a good at party -- My RIB CAGE is

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread Mark Lawrence
On 16/10/2015 10:44, lucasfneves14 wrote: How did you do it? I conned my way in, nobody suspected it. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: TCP sockets python timeout public IP adresss

2015-10-16 Thread lucasfneves14
How did you do it? -- https://mail.python.org/mailman/listinfo/python-list

How to use Tornado.gen.coroutine in TCP Server?

2015-07-11 Thread Zely Zon
hi ,evreyone! i want to know how to user tornado.gen.coroutine in Tcp server? here is my question link in stackoverflow. http://stackoverflow.com/questions/31353861/how-to-use-tornado-gen-coroutine-in-tcp-server thank you ! -- https://mail.python.org/mailman/listinfo/python-list

Re: Multi-threaded TCP server class for general use

2015-05-07 Thread Chris Angelico
On Fri, May 8, 2015 at 8:20 AM, wrote: > I needed to develop a highly scalable multi-threaded TCP server in Python and > when I started writing it in 2013 I could not find a suitable library that > would scale the way I needed but also easy to use. > > So I invented one - it&

Multi-threaded TCP server class for general use

2015-05-07 Thread mark . r . bannister
Hi, I needed to develop a highly scalable multi-threaded TCP server in Python and when I started writing it in 2013 I could not find a suitable library that would scale the way I needed but also easy to use. So I invented one - it's called Pyloom. If you want to take a look, it's p

Re: Communicating with multiple clients using one TCP socket pyt

2015-03-30 Thread Ian Kelly
On Mon, Mar 30, 2015 at 2:43 AM, bobbdeep wrote: > Also, when once client is connected to the server, the other cannot connect > to the server. Any ideas on how to do this ? While one client is connected, the server can't accept new connections because it's tied up in a blocking call to recv, wa

Re: Communicating with multiple clients using one TCP socket pyt

2015-03-30 Thread sohcahtoa82
On Monday, March 30, 2015 at 1:44:17 AM UTC-7, bobbdeep wrote: > I am using TCP sockets to communicate between my server and clients. The > server code and socket code are as below: > > server: > > from socket import * > > HOST = 'xx.xx.xx.xx' > PORT =

Communicating with multiple clients using one TCP socket pyt

2015-03-30 Thread bobbdeep
I am using TCP sockets to communicate between my server and clients. The server code and socket code are as below: server: from socket import * HOST = 'xx.xx.xx.xx' PORT = 1999 serversocket = socket(AF_INET,SOCK_STREAM) serversocket.bind((HOST,PORT)) print 'bind success' s

Re: TCP sockets python timeout public IP adresss

2015-03-30 Thread bobbdeep
On Sunday, March 29, 2015 at 2:27:59 PM UTC+5:30, bobbdeep wrote: > I am trying to communicate between a server and client using TCP sockets. > > Server code: > > import socket > import sys > > # Create a TCP/IP socket > sock = socket.socket(socket.

Re: TCP sockets python timeout public IP adresss

2015-03-29 Thread mm0fmf
On 29/03/2015 12:20, bobbdeep wrote: How do I add a port to the list of open ports on my server ? Ask the system administrator. -- https://mail.python.org/mailman/listinfo/python-list

Re: TCP sockets python timeout public IP adresss

2015-03-29 Thread bobbdeep
On Sunday, March 29, 2015 at 3:44:43 PM UTC+5:30, mm0fmf wrote: > On 29/03/2015 09:57, bobbydeep wrote: > > From the error (10060) it looks like Windows but it would be nice if > you could say which Python and OS you were using. > > I haven't looked at your code but just taking at face value th

Re: TCP sockets python timeout public IP adresss

2015-03-29 Thread mm0fmf
On 29/03/2015 09:57, bobbydeep wrote: From the error (10060) it looks like Windows but it would be nice if you could say which Python and OS you were using. I haven't looked at your code but just taking at face value that it does work internally. server_address = ('my-server-ipadress', 199

Re: TCP sockets python timeout public IP adresss

2015-03-29 Thread bobbdeep
Changed server code to the following, from socket import * HOST = '' PORT = 8080 serversocket = socket(AF_INET,SOCK_STREAM) serversocket.bind((HOST,PORT)) serversocket.listen(5) while True: (clientsocket, address) = serversocket.accept() print ("Got client request from",address) clien

TCP sockets python timeout public IP adresss

2015-03-29 Thread bobbydeep
I am trying to communicate between a server and client using TCP sockets. Server code: import socket import sys # Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Bind the socket to the port server_address = ('my-server-ipadress&#

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-17 Thread Grant Edwards
nd should be some indication of the beginning and end of a data > 'block'. In actual fact the data is very likely to be in JSON. Using TCP with human-readable ASCII data sure makes testing, prototyping, and troubleshooting a lot easier: you'd be surprised what you can do with so

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-17 Thread alister
#x27;s inefficient? Sure, the UDP datagram will get >> fragmented and re-assembled at the other end, but it's not like TCP >> would do any better. One way or another, your data is going to be >> transmitted in packet that fit into the MTU. > > Sorry, is less efficient.

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-17 Thread Peter Otten
our, or less. There is probably an upper bound of 64KB or so > of data that is likely to be sent on each occasion. > > Previous similar systems have attempted to do this by maintaining multiple > long-term TCP connections from the master to all the slave devices. The > Master is the se

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Chris Angelico
On Mon, Nov 17, 2014 at 4:21 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> UDP for anything more than your network's MTU is inefficient > > Why do you say it's inefficient? Sure, the UDP datagram will get > fragmented and re-assembled at th

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread jkn
Hi All Thanks for the various and interesting responses so far. A bit of fleshing out in a few areas: The problems of maintaining the long-term TCP connection is something I'd like to leave to one side, for now at least. There are some non-technical project issues here which is why

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Grant Edwards
On 2014-11-16, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> UDP for anything more than your network's MTU is inefficient > > Why do you say it's inefficient? Sure, the UDP datagram will get > fragmented and re-assembled at the other end, but

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Roy Smith
In article , Chris Angelico wrote: > UDP for anything more than your network's MTU is inefficient Why do you say it's inefficient? Sure, the UDP datagram will get fragmented and re-assembled at the other end, but it's not like TCP would do any better. One way or another,

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Grant Edwards
r network's MTU is inefficient, plus you'd need to roll your own > acknowledgement system so you know when the client got the data, at > which point you're basically recreating TCP. > > That said, though: UDP would be a good option, if and only if you can > comply wit

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Grant Edwards
ms occurring perhaps once very few seconds, to much > less often - once per half an hour, or less. There is probably an > upper bound of 64KB or so of data that is likely to be sent on each > occasion. > > Previous similar systems have attempted to do this by maintaining > multipl

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Chris Angelico
g requirements, but 64K is still way too much to consider UDP. I wouldn't say "way too much"; the packet limit for UDP is actually 64KB (minus a few bytes of headers). But UDP for anything more than your network's MTU is inefficient, plus you'd need to roll your own acknowle

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Alain Ketterlin
s have attempted to do this by maintaining multiple > long-term TCP connections from the master to all the slave devices. The > Master is the server and the slaves periodically check the master to see > what has changed. Although this ... works ..., we have had trouble > maintainin

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Marko Rauhamaa
jkn : > Although this ... works ..., we have had trouble maintaining the > connection, for reasons ... I am not yet fully aware of. I can see your TCP connections are choppy. Your posting is breaking up. Seriously, though, there shouldn't be any reason for TCP connections dropping o

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread Chris Angelico
that you're working with ethernet (most MUDs are accessed through the dangerous waters of the internet, and there are all sorts of extra problems). > Previous similar systems have attempted to do this by maintaining multiple > long-term TCP connections from the master to all t

OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread jkn
of data that is likely to be sent on each occasion. Previous similar systems have attempted to do this by maintaining multiple long-term TCP connections from the master to all the slave devices. The Master is the server and the slaves periodically check the master to see what has changed. A

Re: tcp server as windows service

2014-09-23 Thread Johannes Findeisen
Hi, On Tue, 23 Sep 2014 15:56:41 +0200 Arulnambi Nandagoban wrote: > Hello all, > > > > I developed a multithreaded tcp server with python and I converted into a > windows executable using pyinstaller. > > I would like to run the server as a windows service

tcp server as windows service

2014-09-23 Thread Arulnambi Nandagoban
Hello all, I developed a multithreaded tcp server with python and I converted into a windows executable using pyinstaller. I would like to run the server as a windows service so that server restarts whenever pc restarts without doing it manually . Help me out with some sample code

Re: Entreprise level python tcp server

2014-07-09 Thread Terry Reedy
> On 7/9/2014 3:36 AM, Arulnambi Nandagoban wrote: >> I like to convert the python script to windows application. The proper way to do asynchronous io on Windows is quite different from the proper way to do it on posix systems (more or less everything other than Windows). If you plan on using

Re: Entreprise level python tcp server

2014-07-09 Thread Emile van Sebille
of python server in enterprise application ? I already developed a tcp server in python as a prototype. Our requirement for tcp server to handle more than 1 connection simultaneously . Since, I am the only python fanatic in my company, it is difficult to make them convince. If you could provide

Re: Entreprise level python tcp server

2014-07-09 Thread INADA Naoki
the reliability level of python server in enterprise > application ? I already developed a tcp server in python as a prototype. > > Our requirement for tcp server to handle more than 1 connection > simultaneously . Since, I am the only python fanatic in my company, it is > difficult

Entreprise level python tcp server

2014-07-09 Thread Arulnambi Nandagoban
Hello all, Can anyone tell me the reliability level of python server in enterprise application ? I already developed a tcp server in python as a prototype. Our requirement for tcp server to handle more than 1 connection simultaneously . Since, I am the only python fanatic in my company

Re: Python Scalability TCP Server + Background Game

2014-01-21 Thread Philip Werner
> Looking a lot more normal and readable now. Thanks! > > Note that some people have experienced odd issues with Pan, possibly > relating to having multiple instances running simultaneously. You may > want to take care not to let it open up a duplicate copy of itself. > > ChrisA Thanks for the h

Re: Python Scalability TCP Server + Background Game

2014-01-19 Thread Chris Angelico
On Mon, Jan 20, 2014 at 5:53 AM, Philip Werner wrote: > On Sat, 18 Jan 2014 13:19:24 +, Mark Lawrence wrote: > >> On 18/01/2014 12:40, phi...@gmail.com wrote: >> >> [snip the stuff I can't help with] >> >> Here's the link you need to sort the problem with double spacing from >> google groups h

Re: Python Scalability TCP Server + Background Game

2014-01-19 Thread Philip Werner
On Sat, 18 Jan 2014 13:19:24 +, Mark Lawrence wrote: > On 18/01/2014 12:40, phi...@gmail.com wrote: > > [snip the stuff I can't help with] > > Here's the link you need to sort the problem with double spacing from > google groups https://wiki.python.org/moin/GoogleGroupsPython Thanks for the

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread Mark Lawrence
On 18/01/2014 12:40, phi...@gmail.com wrote: [snip the stuff I can't help with] Here's the link you need to sort the problem with double spacing from google groups https://wiki.python.org/moin/GoogleGroupsPython -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread phiwer
Den lördagen den 18:e januari 2014 kl. 13:13:47 UTC+1 skrev Asaf Las: > On Wednesday, January 15, 2014 8:37:25 PM UTC+2, phi...@gmail.com wrote: > > > My problem is as follows: > > > > > > 2) The network layer of the game server runs a separate process as well, > > > and my intention was

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread Asaf Las
On Wednesday, January 15, 2014 8:37:25 PM UTC+2, phi...@gmail.com wrote: > My problem is as follows: > > 2) The network layer of the game server runs a separate process as well, > and my intention was to use gevent or tornado (http://nichol.as/asynchronous- >servers-in-python). > 3) The game

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread phiwer
> (You're using Google Groups, which means your replies are > > double-spaced and your new text is extremely long lines. Please fix > > this, either by the fairly manual job of fixing every post you make, > > or the simple method of switching to a better client. Thanks.) > > > > My point was

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread Chris Angelico
On Sat, Jan 18, 2014 at 6:44 PM, wrote: >> Quick smoke test. How big are your requests/responses? You mention >> >> REST, which implies they're going to be based on HTTP. I would expect >> >> you would have some idea of the rough size. Multiply that by 50,000, >> >> and see whether your connectio

Re: Python Scalability TCP Server + Background Game

2014-01-17 Thread phiwer
a REST api. * At the bottom is the game. * Communication betweeen these layers is handled by a simple text protocol using TCP. The game has a tick function every now and then, which forwards the game's time. If a player enters the game, a message is sent to the game server (querying for p

Re: Python Scalability TCP Server + Background Game

2014-01-15 Thread Chris Angelico
On Thu, Jan 16, 2014 at 5:37 AM, wrote: > 3) The game server has a player limit of 5. My requirement/desire is to > be able to serve 50k requests per second (without any caching layer, although > the game server will cache data), so people don't get a poor user experience > during high pea

Python Scalability TCP Server + Background Game

2014-01-15 Thread phiwer
My problem is as follows: I'm developing an online game with the requirement of being able to handle thousands of requests every second. The frontend consists of web server(s) exposing a rest api. These web servers in turn communicate with a game server over TCP. When a message arrives a

Simple TCP message framework

2013-11-23 Thread Padawan Learner
Seems like the following pattern must be very common, solved a million times, but I can't seem to find anything this simple and ready to use. Basically I just want a simple python messaging layer that hides some of the messiness of the underlying sockets and user authentication. It would be asy

Re: TCP reassembly

2013-04-25 Thread Dave Angel
On 04/25/2013 07:35 PM, Hasil Sharma wrote: Hi everyone , How to reassemble the TCP data packets into objects viz. html , css , js image files etc . I have no idea how to implement it using python , please help ? TCP reassembly has a specific meaning, and I doubt if that's what you

Re: TCP reassembly

2013-04-25 Thread Andrew Berg
On 2013.04.25 18:35, Hasil Sharma wrote: > Hi everyone , > How to reassemble the TCP data packets into objects viz. html , css , js > image files etc . I have no idea how to implement it using python , please > help ? TCP packets don't need to be reassembled. If your applica

TCP reassembly

2013-04-25 Thread Hasil Sharma
Hi everyone , How to reassemble the TCP data packets into objects viz. html , css , js image files etc . I have no idea how to implement it using python , please help ? -- http://mail.python.org/mailman/listinfo/python-list

Faking TCP Sessions with Scapy

2013-03-22 Thread Jim Mellander
Hi all: For various reasons, I want to take apache logs, and create actual pcap packets that could plausibly have created those logs. Obviously, a lot of the info would need to be faked, such as the actual page contents that were served (we have a byte count), the ports, and a few other details.

Re: Hosting a Python based TCP server

2010-12-23 Thread Jon Clements
On Dec 23, 12:01 pm, Oltmans wrote: > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want > to host it on some ISP so that it can be accessed anywhere from the > Internet. I've never done that before so I thought I should ask for > some

Re: Hosting a Python based TCP server

2010-12-23 Thread Dan M
On Thu, 23 Dec 2010 04:01:03 -0800, Oltmans wrote: > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want to > host it on some ISP so that it can be accessed anywhere from the > Internet. I've never done that before so I thought I should ask

Re: Hosting a Python based TCP server

2010-12-23 Thread Adam Tauno Williams
On Thu, 2010-12-23 at 04:40 -0800, bobicanprogram wrote: > On Dec 23, 7:01 am, Oltmans wrote: > > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want > > to host it on some ISP so that it can be accessed anywhere from the > > Internet

Re: Hosting a Python based TCP server

2010-12-23 Thread python
Rolf, > I'm writing a very small TCP server (written in Python) and now I want to > host it on some ISP so that it can be accessed anywhere from the Internet. > I've never done that before so I thought I should ask for some advice. Do you > guys know any good ISP that ca

  1   2   3   4   >