[swift-evolution] Preconditions aborting process in server scenarios [was: Throws? and throws!]
david at alkaline-solutions.com
Mon Jan 16 17:57:57 CST 2017
Today - if you wanted a Swift server where overflowing addition didn’t interrupt your service for multiple users, you would need to use something like a pre-fork model (with each request handled by a separate swift process)
That's the difference between CLI and desktop apps where the process is providing services for a single user, and a server where it may be providing a service for thousands or millions of users.
> On Jan 16, 2017, at 2:32 PM, Callionica (Swift) via swift-evolution <swift-evolution at swift.org> wrote:
> One stray thread performing an overflowing addition can be the difference between a secure system and an insecure one. Better to take the process down.
> -- Callionica
> On Sun, Jan 15, 2017 at 10:48 PM Russ Bishop via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> I don’t think it makes sense to abort a server process (potentially dropping X threads and thousands of connections on the ground) because one stray thread performed an overflowing addition…
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution