Re: Hi All, I am a newbee for cherrypy. My question is how to realize a link limitation for cherry?
Zhao Kevin <[email protected]>
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
Hi Paul.
Really kind of you! Appreciate for your help.
I have realized the function by dealing with session id in the
applicaiton .
在 2016年4月15日星期五 UTC+8下午5:37:26,kopernikus写道:
>
> Am 14.04.2016 um 04:46 schrieb Kevin Zhao:
> > 2016-04-14 1:44 GMT+08:00 Tim Roberts <[email protected] <javascript:>>:
> [snipp]
>
> >> Why do you think one session will affect another session? There is no
> >> reason on earth why that has to be true. All you have to do is send
> >> over a "session identifier" during the first contact, then any
> >> additional contact can send back the session identifier. You can have
> >> several machines doing installations at the same time. You just have
> to
> >> remember how far along that particular session got.
> >>
> >> In the target machine B, there is only one installation process . If
> > several accesses to web
> > server, the parameters may be affected. We just want to one user to do
> the
> > installation process.
> > Thanks~
>
> Hi Kevin,
>
> what you want to do is absolutely doable. You just need to understand that
> the
> implementation has very little to do with http and cherrypy but needs to
> be
> implemented at the application layer. Think about it as a system for
> submitting
> jobs (in your case: build an OS).
>
> - user visits Webserver on A
> - user fills in parameters and submits job
> - A parses request and starts job on B
> - A saves job state (in a file or database)
> - A sends response to user about the job
>
> If you only allow one job at a time, you tell any user except the one
> "owning"
> the job that you're busy.
>
> To make this work you need a basic understanding how HTTP works, how
> sessions
> work with HTTP and how to implement sessions in cherrypy.
>
> Just to make it clear: There is no magic switch that reads "do what I
> want". You
> absolutely need to understand how stuff works. I think you got enough
> information in this thread to solve your problem.
>
> cheers
> Paul
>
>
--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.