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 Alex,
     Thanks for your doc, I will have a look. Maybe    http keep-alive + 
set the num of thread_pool could solve this...

在 2016年4月8日星期五 UTC+8下午10:09:52,Alexandru Guzu写道:
>
> CherryPy uses thread so it can serve multiple requests simultaneously. 
> What you want to do seems to be to configure CherryPy to server only a 
> single request at a time.
>
> I am not sure how to achieve this exactly as it seems to be a weird 
> requirement, but I would look at limiting the threads:
>
> http://docs.cherrypy.org/en/latest/pkg/cherrypy.html?highlight=thread#cherrypy._cpserver.Server.thread_pool
> Or adding some sort of locking in your application:
> https://docs.python.org/3/library/threading.html#lock-objects
>
> On Thursday, April 7, 2016 at 2:52:51 AM UTC-4, Zhao Kevin wrote:
>>
>> Hi All ,
>>        I am a new comer for cherrypy. It is really a convenient web frame 
>> ~ 
>> I want to realize a function as below:
>>        After the cherry https server start , in the first browse , type 
>> into the ip and get access to the  server.
>>        In another browse , type into the ip address , the server reject 
>> the another access until the first access is over.
>>        So, I want to set the server only allow once connection at the 
>> same time ... How can I realize it ? Is there any configuration parameters 
>> I should to set ?
>>
>> Now status:
>>       I have finished the website ,using https. I can get access to the 
>> server in different browse at the same time.
>>
>>       Pls feel free to let me know if you have any question.You response 
>> will be really appreciated for your kindly help~
>>       Sincerely Thanks~
>>
>

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.