阅读背景:

在Python的SocketServer中,TCPServer + BaseRequestHandler是否在每次调用handle()之后关闭套接字?

来源:互联网 

I'm writing a client/server application in Python and I'm finding it necessary to get a new connection to the server for each request from the client. My server is just inheriting from TCPServer and I'm inheriting from BaseRequestHandler to do my processing. I'm not calling self.request.close() anywhere in the handler, but somehow the server seems to be hanging up on my client. What's up?I'm writing a client/server application in Pyth




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: