Deutsch English Français Italiano |
<valo4v$35rt8$6@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.python Subject: Re: Triggered By Mediocre Code (Posting On Python-List Prohibited) Date: Tue, 27 Aug 2024 23:40:15 -0000 (UTC) Organization: A noiseless patient Spider Lines: 16 Message-ID: <valo4v$35rt8$6@dont-email.me> References: <vag94r$23hhf$2@dont-email.me> <878qwk9rym.fsf@nightsong.com> <vagfus$24uu6$5@dont-email.me> <87a5gz116b.fsf@nightsong.com> <vaitf9$2k7o6$7@dont-email.me> <875xrn0wj8.fsf@nightsong.com> <vajfoj$2qnmk$1@dont-email.me> <87bk1drjwu.fsf@nightsong.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 28 Aug 2024 01:40:15 +0200 (CEST) Injection-Info: dont-email.me; posting-host="52d1e1001450c2fe7f8121ab25cdb228"; logging-data="3338152"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BdR35e6KlHxVWvSLYh+A6" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:+BoK+Q8dEWRjfdlstBAJMFkQp+g= Bytes: 1969 On Tue, 27 Aug 2024 09:48:49 -0700, Paul Rubin wrote: >> Separate PHP apps need separate web server processes, anyway. > > I had thought the opposite, but I'm not much of a PHP user. A PHP code page is written to respond to a single HTTP request and return a single response. So to handle multiple simultaneous requests, you need multiple instances of that code running. mod_php can’t do that within a single process (I don’t think), so you need a separate process for each simultaneous connection. (Of course Web servers have techniques for keeping and reusing those worker processes, to avoid doing fork(2) calls all the time.) With Python ASGI, you control what happens. A single process can handle multiple connections, if you so choose.