Re: Does module socketserver using epoll in python3?

2019-11-28 Thread lampahome
>
> The source code is here:
> https://github.com/python/cpython/blob/master/Lib/socketserver.py .  You
> should find all the technical details you are looking for in it.
>
>
# poll/select have the advantage of not requiring any extra file
> descriptor,# contrarily to epoll/kqueue (also, they require a single
> syscall).
> if hasattr(selectors, 'PollSelector'):
>  _ServerSelector = selectors.PollSelector
> else:
>  _ServerSelector = selectors.SelectSelector

 Oh..no It uses poll or select ranther than epoll. Maybe it suffer some
performance degrading.

thx lot.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Does module socketserver using epoll in python3?

2019-11-28 Thread Michael Torrie
On 11/28/19 8:46 PM, lampahome wrote:
> As title,
> 
> I want to use socketserver to replace my own server code to
> maintain ealsier.
> 
> But I don't found any info about tech. detail of socketserver, epoll is
> important.
> 
> Can anyone tell me?

The source code is here:
https://github.com/python/cpython/blob/master/Lib/socketserver.py .  You
should find all the technical details you are looking for in it.

-- 
https://mail.python.org/mailman/listinfo/python-list


Does module socketserver using epoll in python3?

2019-11-28 Thread lampahome
As title,

I want to use socketserver to replace my own server code to
maintain ealsier.

But I don't found any info about tech. detail of socketserver, epoll is
important.

Can anyone tell me?
-- 
https://mail.python.org/mailman/listinfo/python-list