Re: Hi All, I am a newbee for cherrypy. My question is how to realize a link limitation for cherry?
Kevin Zhao <[email protected]>
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <CAKe2hGBb3eVWg7coB1ZhKAiaFNskykFDPy18qaXDK0Ja39MARg@mail.gmail.com> |
2016-04-14 1:44 GMT+08:00 Tim Roberts <[email protected]>: > Zhao Kevin wrote: > > > > My request is to realize the function like that: > > There is a Linux Distro installer ,with it we can install a > > specify Linux Distro, just like installation process of Redhat and > > ubuntu, you need to select the disk, set the network ,set the user id > > and passwd and then begin to the installation process. > > Now we are working about putting this installer to web, so we can > > get access from browser.It will be more convenient. For example, I can > > get access to "http://45.37.251.102" , select the parameters : disk, > > network , user id and passwd just like in the origin installer. > > If you are installing an operating system, how do you have access to a > browser? > > Remember that web applications run in a limited sandbox -- they cannot > access the local disk arbitrarily. You will have to send over an > application to control things on the client side. You can certainly > download a desktop application, pass the parameters to that application, > and then have it continue just like the current installers, which will > fetch the additional files. All you are doing is starting the process. > > Yeah it is a long story. There is a controller machine(called machine A), and a target machine(called machine B). We can use A to load a image to B. And then in B, start an installer process and web server. User can use browser in another machine to get access this server,choose some installation parameters.The web server records the parameters and send them to the installer process. So that will realize the installation. > > > After set the parameters , begin installation. So I put the > > questions here, I need to realize the function "forbid multiple http > > session" , because if multiple session connecting to the server, one > > session will affect another session. So at the same time of the > > installation process, I just want a single session to server. > > By using http keep-alive ,could I solve the problem? > > 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~ > -- > Tim Roberts, [email protected] > Providenza & Boekelheide, Inc. > > -- > 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. > -- 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.