Another, much more drastic, option would be to use UDP sockets instead of TCP sockets. UDP sockets are connectionless and you can restart your server as much as you want without disturbing clients. However, UDP sockets require you to handle retransmission when packets are lost and don't guarantee ordered delievery of packets, so there's definitely a downside here.
Depending on the nature of the application, UDP can also be less secure. All you know is that someone claimed to place something in your UDP conversation. Securing UDP has a much more difficult path than TCP. I am not saying it cannot be done, you just end up writing many of the things that TCP already handles for you.
--MidLifeXis
In reply to Re: Re: Restarting a script without dropping clients
by MidLifeXis
in thread Restarting a script without dropping clients
by Ahbeyra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |