Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4766

Re: Need to solve the "Stateless HTTP" problem

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:" ': 0.03; 'scripting': 0.05; 'mode,': 0.07; 'python': 0.07; 'scripts': 0.10; 'url:code': 0.11; 'essentially': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'asking.': 0.16; 'osx': 0.16; 'py3': 0.16; 'simplest': 0.16; 'solution?': 0.16; 'terms,': 0.16; 'timeout': 0.16; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'thu,': 0.22; 'objects': 0.24; 'apache': 0.25; 'subject:problem': 0.25; 'suspect': 0.25; 'received:209.85.161.46': 0.26; 'received:mail- fx0-f46.google.com': 0.26; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.161': 0.29; 'server': 0.29; 'cc:addr:python.org': 0.31; 'recreate': 0.31; 'it.': 0.31; 'page': 0.33; 'certain': 0.34; 'there': 0.35; 'point': 0.35; 'running': 0.36; 'problem.': 0.36; 'data': 0.37; 'some': 0.37; 'should': 0.37; 'received:209.85': 0.37; 'exactly': 0.37; 'run': 0.37; 'received:google.com': 0.38; 'url:google': 0.38; 'where': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'simple': 0.60; 'here:': 0.61; '2011': 0.62; 'url:p': 0.63; 'websites': 0.77; 'slow.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=+mPmYAXJn9PSydcUGf7ACJAr/DZLYVngIwvGVS4woEA=; b=efv2KWi4lCKltW6q5dVuCBBuGbi2t4f93+jNxafglppYxZNFR4QwE1d77JfvcBGjzQ 7c07hUvQamYj6dthtXRykGDTdplSr/zOvJo2yJ9xL/JXEiKk+ujHbdzm0grClp0WNYVt 9f01Fz0PIMebmFMh0hR6cZ+9vEl0QCJGGpWKY=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=wU4B29mP2quP8O4cie+C1O/MUrUYDpHjgAjRGt27j1s3MKJbOuz0rS+HPmcJzivO1A 2NzcqBd1/fSeR3rjW1HHv1vbXfVsTYZaieiBNN1siuOJYTwWVgdD84eWaPd8UHqVFGYO wQXXZd9OKDxm/CD87jviW8tA03suvSq/q8Gz0=
MIME-Version 1.0
In-Reply-To <a843a6cd-c2dd-4fdc-a8db-1f687e775eb8@f31g2000pri.googlegroups.com>
References <a843a6cd-c2dd-4fdc-a8db-1f687e775eb8@f31g2000pri.googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Thu, 5 May 2011 11:07:42 -0600
Subject Re: Need to solve the "Stateless HTTP" problem
To Gnarlodious <gnarlodious@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1198.1304615293.9059.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 82.94.164.166
X-Trace 1304615293 news.xs4all.nl 81479 [::ffff:82.94.164.166]:48466
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:4766

Show key headers only | View raw


On Thu, May 5, 2011 at 8:22 AM, Gnarlodious <gnarlodious@gmail.com> wrote:
> My scripting has grown to the point where the Apache server is a
> problem. My Python websites run and quit, which means I need to save
> data and recreate everything next page load. Bulky and slow. What is
> the simplest solution?
>
> I am running Py3 on OSX Server with Apache 2. Essentially I want
> certain objects to be a "constantly running process" that may timeout
> after some disuse. I suspect there are already systems for it. Please
> advise in simple terms, I am not a professional.

It sounds to me like you're currently running your Python scripts as
CGIs?  You should look into running your scripts via mod_wsgi in
daemon mode, which will do exactly what you are asking.  See here:

http://code.google.com/p/modwsgi/

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Need to solve the "Stateless HTTP" problem Gnarlodious <gnarlodious@gmail.com> - 2011-05-05 07:22 -0700
  Re: Need to solve the "Stateless HTTP" problem garabik-news-2005-05@kassiopeia.juls.savba.sk - 2011-05-05 14:37 +0000
  Re: Need to solve the "Stateless HTTP" problem Chris Angelico <rosuav@gmail.com> - 2011-05-06 00:47 +1000
  Re: Need to solve the "Stateless HTTP" problem Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-05 11:07 -0600

csiph-web