worker.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:HTTPWookiee 作者: regilero 项目源码 文件源码
def close_socket_for_read(self):
        """Close the server-client socket for reads incoming from client.

        We do not completly close the socket right now to allow late reads
        in the client side. But this socket will soon be closed.
        """
        if self._sock is not None:
            self.outmsg("Closing socket for reads")
            try:
                self._sock.shutdown(socket.SHUT_RD)
            except Exception:
                # already closed
                pass
        self._sock_accept_reads = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号