Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80878
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: OTish: using short-term TCP connections to send to multiple slaves |
| Date | 2014-11-16 14:44 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <87egt3iabs.fsf@elektro.pacujo.net> (permalink) |
| References | <SMCdnZ700MHHD_XJnZ2dnUVZ8iSdnZ2d@brightview.co.uk> |
jkn <jkn_gg@nicorp.f9.co.uk>: > 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 on their own. You need to have a chat with your IT people. > We are now considering an alternative approach where the master > maintains a list of slave devices and acts as a client. Each device is > a server from the point of view of data transfer. We would then use a > short-lived TCP connection when data is available; the Master would > connect to each slave which needed the data, send it, and close the > connection. > > I should also add that we desire our system to be 'robust' in the face > of situations such as cable unplugging, device power cycles, etc. > > Although this might get round some of our current problems, I can see that > we might end up with new problems to deal with. There are numerous ways to accomplish what you desire, and they can all be made to work. One simple idea is to use tunneling. IP-over-IP, GRE or OpenVPN tunneling would not mind the underlying ethernet interfaces going down occasionally. At worst, there's some IP fragmentation issues, but your data rates are so low that you wouldn't feel a thing. > As I say, I am expecting to prototype it in Python so any specifics > also welcome! If you set up tunneling, you don't have to change your original working Python code, and you'd be safe against cable thieves and adventurous IT administrators. > (suggestions as to a better forum to ask for previous experience also Marko
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
OTish: using short-term TCP connections to send to multiple slaves jkn <jkn_gg@nicorp.f9.co.uk> - 2014-11-16 12:02 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Chris Angelico <rosuav@gmail.com> - 2014-11-16 23:36 +1100
Re: OTish: using short-term TCP connections to send to multiple slaves Marko Rauhamaa <marko@pacujo.net> - 2014-11-16 14:44 +0200
Re: OTish: using short-term TCP connections to send to multiple slaves Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2014-11-16 14:43 +0100
Re: OTish: using short-term TCP connections to send to multiple slaves Chris Angelico <rosuav@gmail.com> - 2014-11-17 02:13 +1100
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-16 16:53 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Roy Smith <roy@panix.com> - 2014-11-16 12:21 -0500
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-16 17:35 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Chris Angelico <rosuav@gmail.com> - 2014-11-17 08:56 +1100
Re: OTish: using short-term TCP connections to send to multiple slaves alister <alister.nospam.ware@ntlworld.com> - 2014-11-17 10:46 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves jkn <jkn_gg@nicorp.f9.co.uk> - 2014-11-16 21:45 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-17 16:56 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Grant Edwards <invalid@invalid.invalid> - 2014-11-16 16:42 +0000
Re: OTish: using short-term TCP connections to send to multiple slaves Peter Otten <__peter__@web.de> - 2014-11-17 09:16 +0100
csiph-web