while trueconnectionaddress sockobj accept(while truedata connection recv( time sleep( listen until process killed wait for next client connect read next line on client socket take time to process request if you then run this server and the testecho clients scriptyou'll notice that not all clients wind up receiving connectionbecause the server is too busy to empty its pending-connections queue in time only clients are served when run this on windows--one accepted initiallyand in the pending-requests listen queue the other two clients are denied connections and fail the following shows the server and client messages produced when the server is stalled this wayincluding the error messages that the two denied clients receive to see the clientsmessages on windowsyou can change testecho to use the startargs launcher with / switch at the front of the command line to route messages to the persistent console window (see file testecho-messages py in the examples package) :\pp \dev\examples\pp \internet\socketsecho-server-sleep py server connected by ( ' server connected by ( ' server connected by ( ' server connected by ( ' server connected by ( ' server connected by ( ' :\pp \dev\examples\pp \internet\socketstestecho-messages py / echo-client py / echo-client py / echo-client py / echo-client py / echo-client py / echo-client py / echo-client py / echo-client py client receivedb'echo=>hello network worldtraceback (most recent call last)file " :\pp \internet\sockets\echo-client py"line in sockobj connect((serverhostserverport)connect to server machine socket error[errno no connection could be made because the target machine actively refused it traceback (most recent call last)file " :\pp \internet\sockets\echo-client py"line in sockobj connect((serverhostserverport)connect to server machine socket error[errno no connection could be made because the target machine actively refused it network scripting