Re: Channels 2.0 max number of connections

2018-04-06 Thread Алексей Кузуб
Or I was wrong and the solution is using "from twisted.internet import 
iocpreactor" instead of "from twisted.internet import reactor"

пятница, 6 апреля 2018 г., 12:32:19 UTC+3 пользователь Алексей Кузуб 
написал:
>
> Thank you, Andrew!
> I try to simulate 1.000 connections and I got exception ValueError: too 
> many file descriptors in select(). I use Windows OS.
> I found the solution of this problem here 
> https://docs.python.org/3/library/asyncio-eventloops.html#asyncio.ProactorEventLoop
> Is there some way to use it with Channels and Daphne?
>
> четверг, 5 апреля 2018 г., 9:41:30 UTC+3 пользователь Andrew Godwin 
> написал:
>>
>> No, there is no hard limit programmed into Daphne. It will keep accepting 
>> as long as it can.
>>
>> Andrew
>>
>> On Wed, Apr 4, 2018 at 11:30 PM, Алексей Кузуб  wrote:
>>
>>> But no limit in params or in some other place?
>>>
>>> среда, 4 апреля 2018 г., 20:00:11 UTC+3 пользователь Andrew Godwin 
>>> написал:

 It depends on your server and how busy the connections are. If you need 
 more you should run more instances of Daphne.

 Andrew

 On Wed, 4 Apr 2018, 05:21 Алексей Кузуб,  wrote:

> Hello! How many connections Channels 2.0 can handle and keep open 
> simultaneously? And how should I configure Daphne that increases this 
> number?
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/641b59f8-ed76-4a08-a7f2-06963e7d183f%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/9602d8c9-3316-4455-b14c-9da9e20217b8%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a3761dce-6ffe-406c-b0fc-a4dd952d87fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels 2.0 max number of connections

2018-04-06 Thread Алексей Кузуб
Thank you, Andrew!
I try to simulate 1.000 connections and I got exception ValueError: too 
many file descriptors in select(). I use Windows OS.
I found the solution of this problem here 
https://docs.python.org/3/library/asyncio-eventloops.html#asyncio.ProactorEventLoop
Is there some way to use it with Channels and Daphne?

четверг, 5 апреля 2018 г., 9:41:30 UTC+3 пользователь Andrew Godwin написал:
>
> No, there is no hard limit programmed into Daphne. It will keep accepting 
> as long as it can.
>
> Andrew
>
> On Wed, Apr 4, 2018 at 11:30 PM, Алексей Кузуб  > wrote:
>
>> But no limit in params or in some other place?
>>
>> среда, 4 апреля 2018 г., 20:00:11 UTC+3 пользователь Andrew Godwin 
>> написал:
>>>
>>> It depends on your server and how busy the connections are. If you need 
>>> more you should run more instances of Daphne.
>>>
>>> Andrew
>>>
>>> On Wed, 4 Apr 2018, 05:21 Алексей Кузуб,  wrote:
>>>
 Hello! How many connections Channels 2.0 can handle and keep open 
 simultaneously? And how should I configure Daphne that increases this 
 number?

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to django-users...@googlegroups.com.
 To post to this group, send email to django...@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/641b59f8-ed76-4a08-a7f2-06963e7d183f%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/9602d8c9-3316-4455-b14c-9da9e20217b8%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/50bd42a4-7110-4205-8f9b-32529663db3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels 2.0 max number of connections

2018-04-05 Thread Andrew Godwin
No, there is no hard limit programmed into Daphne. It will keep accepting
as long as it can.

Andrew

On Wed, Apr 4, 2018 at 11:30 PM, Алексей Кузуб  wrote:

> But no limit in params or in some other place?
>
> среда, 4 апреля 2018 г., 20:00:11 UTC+3 пользователь Andrew Godwin написал:
>>
>> It depends on your server and how busy the connections are. If you need
>> more you should run more instances of Daphne.
>>
>> Andrew
>>
>> On Wed, 4 Apr 2018, 05:21 Алексей Кузуб,  wrote:
>>
>>> Hello! How many connections Channels 2.0 can handle and keep open
>>> simultaneously? And how should I configure Daphne that increases this
>>> number?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/641b59f8-ed76-4a08-a7f2-06963e7d183f%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/9602d8c9-3316-4455-b14c-9da9e20217b8%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwN1urHDayBr1%2B%2BbmTATNhSPKNiXvDLfiOTfEHZmF%2BJAbFh0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels 2.0 max number of connections

2018-04-05 Thread Алексей Кузуб
But no limit in params or in some other place?

среда, 4 апреля 2018 г., 20:00:11 UTC+3 пользователь Andrew Godwin написал:
>
> It depends on your server and how busy the connections are. If you need 
> more you should run more instances of Daphne.
>
> Andrew
>
> On Wed, 4 Apr 2018, 05:21 Алексей Кузуб,  
> wrote:
>
>> Hello! How many connections Channels 2.0 can handle and keep open 
>> simultaneously? And how should I configure Daphne that increases this 
>> number?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/641b59f8-ed76-4a08-a7f2-06963e7d183f%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9602d8c9-3316-4455-b14c-9da9e20217b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels 2.0 max number of connections

2018-04-04 Thread Andrew Godwin
It depends on your server and how busy the connections are. If you need
more you should run more instances of Daphne.

Andrew

On Wed, 4 Apr 2018, 05:21 Алексей Кузуб,  wrote:

> Hello! How many connections Channels 2.0 can handle and keep open
> simultaneously? And how should I configure Daphne that increases this
> number?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/641b59f8-ed76-4a08-a7f2-06963e7d183f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwN1uqjoAhWtc6mdmECNV16qdcB9j4wWrTE4u4k%2BGU1KvxmAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Channels 2.0 max number of connections

2018-04-04 Thread Алексей Кузуб
Hello! How many connections Channels 2.0 can handle and keep open 
simultaneously? And how should I configure Daphne that increases this 
number?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/641b59f8-ed76-4a08-a7f2-06963e7d183f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.