Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-17 Thread Karen Shaeffer via Python-list
> On Feb 17, 2021, at 12:25 AM, Karen Shaeffer via Python-list > wrote: > > > >> On Feb 16, 2021, at 8:10 PM, Jason Friedman wrote: >> >>> >>> I set listen(2) and expect to see "error" when more clients than "the >>> maximum number of queued connections" trying to connect the server. But,

Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-17 Thread Karen Shaeffer via Python-list
> On Feb 16, 2021, at 8:10 PM, Jason Friedman wrote: > >> >> I set listen(2) and expect to see "error" when more clients than "the >> maximum number of queued connections" trying to connect the server. But, no >> error!! Even 4 clients can run normally without problem. >> >> Am I misunderstan

Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Jach Feng
Kushal Kumaran 在 2021年2月17日 星期三下午12:11:04 [UTC+8] 的信中寫道: > On Tue, Feb 16 2021 at 07:24:30 PM, Jach Feng wrote: > > I am experimenting with multithreading-socket these days. I build a > > server to handle each client in a separate thread. All are running on > > my local PC. It works fine except

Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Kushal Kumaran
On Tue, Feb 16 2021 at 07:24:30 PM, Jach Feng wrote: > I am experimenting with multithreading-socket these days. I build a > server to handle each client in a separate thread. All are running on > my local PC. It works fine except the listen() method. > > I set listen(2) and expect to see "error"

Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Jason Friedman
> > I set listen(2) and expect to see "error" when more clients than "the > maximum number of queued connections" trying to connect the server. But, no > error!! Even 4 clients can run normally without problem. > > Am I misunderstanding the meaning of this argument? > https://docs.python.org/3/lib

What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Jach Feng
I am experimenting with multithreading-socket these days. I build a server to handle each client in a separate thread. All are running on my local PC. It works fine except the listen() method. I set listen(2) and expect to see "error" when more clients than "the maximum number of queued connect